Probability in javascript.
Kristjan Robam <[email protected]> Tue, 15 Feb 2022 04:16:59 -0800 (PST)
| Newsgroups | alt.comp.lang.javascript |
|---|---|
| Message-ID | <[email protected]> |
<head>
<style>
body, html {
padding: 0;
margin: 0;
height: 70vh;
width: 70vw;
}
.mya{
transform: rotate(-90deg);
height:45vh;
width:40vw;
position:absolute;
top:-10vh;
left: 0vw;
background-color:white;
}
</style>
</head>
<body id="body">
<div class="mya">
<div id="caption" class="msg">
<script>
var i=new Array();
function f1(a) {
if(a<2) return 1;
return a*f1(a-1);
}
function f2(a, a2) {
return f1(a)/(f1(a2)*f1(a-a2));
}
function f3(a3) {
for(var i2=0; i2<a3; i2++) {
document.write(".");
}
document.write("<fff style='margin-top: -15px; display: block;'/>");
}
var i3=92;
for(var i2=0; i2<i3; i2++) {
f3(f2(i3,i2)/8036458565248884679855535);
}
</script>
</div>
</div>
</body>