Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
function dice5()
|
||||
{
|
||||
return 1 + Math.floor(5 * Math.random());
|
||||
}
|
||||
|
||||
function dice7()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
var dice55 = 5 * dice5() + dice5() - 6;
|
||||
if (dice55 < 21)
|
||||
return dice55 % 7 + 1;
|
||||
}
|
||||
}
|
||||
|
||||
distcheck(dice5, 1000000);
|
||||
print();
|
||||
distcheck(dice7, 1000000);
|
||||
Loading…
Add table
Add a link
Reference in a new issue