Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mine Math.random() for zeroes
var count = 0;
while (Math.random() !== 0) count++;
console.log(count);
yes | xargs -n 1 -P 4 node random_zero.js >> zeroes.txt
20157205
44866968
92924709
398495754
409265528
418877998
450345410
591515680
661910692
801903281
841457184
922223879
952177783
1038300695
1055610299
1074197572
1118952470
1130819375
1137984268
1181763324
1188715135
1246276761
1354776720
108745443
376656018
1861663904
2014167576
2504514157
3477590398
3544390943
2006745528
3942133474
446104298
4429271268
621273582
688893389
917228520
1457103115
2851172784
8164197
762344582
1071781359
1981596847
1729778472
396863793
7425759364
9178462707
52964630
13072064698
2635552320
14173151844
2731938384
6304031810
2253089229
1286946499
1430720228
1184775042
387376083
11339901785
10914835989
1980540125
3210319991
1808051544
2716775708
2551540166
2186361843
1836386090
7542010040
12432630971
5374828248
2165821081
3894824469
10294086934
1531291546
940481835
4693795777
5448431090
4652021946
2750097616
2464218569
12342745318
6461031967
2099836097
3458791216
3698978566
22161429455
6517958051
4121276110
4117740827
3523453835
1963081316
4051052107
3014490959
2957977285
2658618236
539659275
3408014928
3077800828
2238637965
3895119434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.