Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Here’s a 100% deterministic (predictable) alternative to `Math.random`. Useful when benchmarking.
// Here’s a 100% deterministic alternative to `Math.random`. Google’s V8 and
// Octane benchmark suites use this to ensure predictable results.
Math.random = (function() {
var seed = 0x2F6E2B1;
return function() {
// Robert Jenkins’ 32 bit integer hash function
seed = ((seed + 0x7ED55D16) + (seed << 12)) & 0xFFFFFFFF;
seed = ((seed ^ 0xC761C23C) ^ (seed >>> 19)) & 0xFFFFFFFF;
seed = ((seed + 0x165667B1) + (seed << 5)) & 0xFFFFFFFF;
seed = ((seed + 0xD3A2646C) ^ (seed << 9)) & 0xFFFFFFFF;
seed = ((seed + 0xFD7046C5) + (seed << 3)) & 0xFFFFFFFF;
seed = ((seed ^ 0xB55A4F09) ^ (seed >>> 16)) & 0xFFFFFFFF;
return (seed & 0xFFFFFFF) / 0x10000000;
};
}());
1 0.9872818551957607
2 0.34880331158638
3 0.5631933622062206
4 0.9990169629454613
5 0.8291510976850986
6 0.13247808441519737
7 0.8254958242177963
8 0.8386827223002911
9 0.11304118484258652
10 0.058928895741701126
11 0.24619931355118752
12 0.4309608079493046
13 0.43863460049033165
14 0.9847143106162548
15 0.019193843007087708
16 0.5199256613850594
17 0.09893354773521423
18 0.630819633603096
19 0.5513432286679745
20 0.7612634487450123
21 0.45847777277231216
22 0.8415531814098358
23 0.9718123562633991
24 0.9179365746676922
25 0.23816543072462082
26 0.9492566883563995
27 0.46984992548823357
28 0.08802265301346779
29 0.4833759106695652
30 0.45412831008434296
31 0.2372550331056118
32 0.3073981963098049
33 0.6631247699260712
34 0.2823348343372345
35 0.9584422707557678
36 0.36410167813301086
37 0.2622053138911724
38 0.08142106235027313
39 0.6515173129737377
40 0.3792773261666298
41 0.4162081107497215
42 0.6399519257247448
43 0.9284527152776718
44 0.9381727017462254
45 0.49138855561614037
46 0.0031540170311927795
47 0.8065003603696823
48 0.8908543661236763
49 0.3407842256128788
50 0.6190863102674484
51 0.24705230072140694
52 0.7918602153658867
53 0.976941492408514
54 0.3940550647675991
55 0.5132062844932079
56 0.1737288311123848
57 0.5583631582558155
58 0.7325432822108269
59 0.25706611946225166
60 0.2915601171553135
61 0.2318103238940239
62 0.9850940145552158
63 0.7866016365587711
64 0.20649829134345055
65 0.6283346079289913
66 0.7269752770662308
67 0.41926171630620956
68 0.7690388411283493
69 0.9924369044601917
70 0.7990747466683388
71 0.10451233759522438
72 0.20576832443475723
73 0.8502169847488403
74 0.273315966129303
75 0.43094250932335854
76 0.045779816806316376
77 0.06620001420378685
78 0.44216009601950645
79 0.1892659291625023
80 0.3466925732791424
81 0.005781501531600952
82 0.21693548932671547
83 0.8598579876124859
84 0.43013714998960495
85 0.08243047073483467
86 0.23607612401247025
87 0.11596870794892311
88 0.8932206407189369
89 0.4032217748463154
90 0.4058900848031044
91 0.053206171840429306
92 0.8489465489983559
93 0.059238746762275696
94 0.49042124301195145
95 0.445031963288784
96 0.5999283418059349
97 0.11364027112722397
98 0.8338725678622723
99 0.9669912569224834
100 0.9517373703420162
101 0.6950012482702732
102 0.7977786213159561
103 0.46178682893514633
104 0.8734106868505478
105 0.019604768604040146
106 0.6805020608007908
107 0.058700863271951675
108 0.6487023159861565
109 0.46169014275074005
110 0.45055871829390526
111 0.5904136784374714
112 0.4092825725674629
113 0.7221097610890865
114 0.13460666313767433
115 0.4668040871620178
116 0.16362625733017921
117 0.8724149912595749
118 0.5412670001387596
119 0.7639074437320232
120 0.6301894262433052
121 0.3111722730100155
122 0.2644409313797951
123 0.1591600924730301
124 0.4283612295985222
125 0.14817550405859947
126 0.8982783779501915
127 0.7871638871729374
128 0.2929409481585026
129 0.9357708543539047
130 0.05567313730716705
131 0.41361771151423454
132 0.8628429882228374
133 0.6604343056678772
134 0.9341103807091713
135 0.8475527688860893
136 0.9574319086968899
137 0.10835792869329453
138 0.031990762799978256
139 0.9238059036433697
140 0.07812562957406044
141 0.33573558181524277
142 0.446679200977087
143 0.0639495700597763
144 0.9339472241699696
145 0.40583982318639755
146 0.13963496685028076
147 0.4566868990659714
148 0.15513550490140915
149 0.4071424975991249
150 0.4539397954940796
151 0.6815357320010662
152 0.812137920409441
153 0.8353478312492371
154 0.23948410898447037
155 0.3572567142546177
156 0.2181975543498993
157 0.1776963733136654
158 0.74233053997159
159 0.8141576424241066
160 0.6044815070927143
161 0.40012820437550545
162 0.3058892749249935
163 0.4588625878095627
164 0.4147251360118389
165 0.41523461043834686
166 0.13661839440464973
167 0.8956259340047836
168 0.17014887556433678
169 0.10709018632769585
170 0.4964575320482254
171 0.7224370650947094
172 0.22136171907186508
173 0.7776643671095371
174 0.07240721210837364
175 0.5973611697554588
176 0.1414162628352642
177 0.09004669636487961
178 0.6140606552362442
179 0.6256054118275642
180 0.9418100565671921
181 0.3390750586986542
182 0.7777301445603371
183 0.17357207834720612
184 0.036132000386714935
185 0.8307995349168777
186 0.9140837453305721
187 0.5453047677874565
188 0.5919273383915424
189 0.4789808541536331
190 0.842921569943428
191 0.4650659076869488
192 0.2379773110151291
193 0.05193065106868744
194 0.3798788897693157
195 0.8629077598452568
196 0.9513263255357742
197 0.8312262669205666
198 0.793738342821598
199 0.03092905879020691
200 0.3072865158319473
201 0.4318329878151417
202 0.7093476504087448
203 0.16062945500016212
204 0.5253100544214249
205 0.25253723189234734
206 0.8111801818013191
207 0.7127876728773117
208 0.40165315940976143
209 0.29450614750385284
210 0.755614772439003
211 0.5490439496934414
212 0.5256499387323856
213 0.7772446349263191
214 0.9492686577141285
215 0.013748716562986374
216 0.3738773502409458
217 0.40674516186118126
218 0.7724226489663124
219 0.16616100072860718
220 0.364024356007576
221 0.6818910427391529
222 0.38574496656656265
223 0.37972088158130646
224 0.5725074782967567
225 0.5490419082343578
226 0.9957277998328209
227 0.19275491312146187
228 0.11537359282374382
229 0.2604375146329403
230 0.6847750432789326
231 0.92011559009552
232 0.6426823399960995
233 0.7810148485004902
234 0.9226315468549728
235 0.05108761414885521
236 0.38003432378172874
237 0.937324021011591
238 0.3744034543633461
239 0.18062560632824898
240 0.28789616748690605
241 0.1388552039861679
242 0.8307947479188442
243 0.8820615485310555
244 0.5588603280484676
245 0.16640732437372208
246 0.37881555780768394
247 0.8834721446037292
248 0.8611514046788216
249 0.07170847058296204
250 0.237070731818676
251 0.7535489723086357
252 0.6474294699728489
253 0.590119194239378
254 0.7893645279109478
255 0.45247459784150124
256 0.42281272634863853
257 0.1609220877289772
258 0.24846385046839714
259 0.9556806161999702
260 0.8923002928495407
261 0.5584897994995117
262 0.4691770523786545
263 0.7957836017012596
264 0.7018822804093361
265 0.6874351389706135
266 0.26689622178673744
267 0.5426602549850941
268 0.226381316781044
269 0.35417571291327477
270 0.5483534261584282
271 0.8174686953425407
272 0.2613641247153282
273 0.2822454757988453
274 0.6989924125373363
275 0.678597129881382
276 0.4902593716979027
277 0.4892013818025589
278 0.8803165704011917
279 0.5440193712711334
280 0.680843111127615
281 0.5920000150799751
282 0.15713706985116005
283 0.6213328428566456
284 0.10886504128575325
285 0.06675484403967857
286 0.5937684886157513
287 0.8615157790482044
288 0.32336680218577385
289 0.30271484702825546
290 0.29567479342222214
291 0.02326134964823723
292 0.0675177164375782
293 0.7103012762963772
294 0.9105875827372074
295 0.5736932083964348
296 0.6058235391974449
297 0.03082495555281639
298 0.12240489572286606
299 0.6538131684064865
300 0.7755627781152725
301 0.22463081404566765
302 0.5611501336097717
303 0.6683959998190403
304 0.07045548409223557
305 0.44000812247395515
306 0.01133134588599205
307 0.5776911154389381
308 0.6630952246487141
309 0.29532457143068314
310 0.7495757080614567
311 0.6883429475128651
312 0.05622459203004837
313 0.8858973793685436
314 0.9485067576169968
315 0.5357719883322716
316 0.4690263867378235
317 0.8425784930586815
318 0.9816100150346756
319 0.6017407961189747
320 0.648065060377121
321 0.402273241430521
322 0.6376650966703892
323 0.2267393134534359
324 0.6937427520751953
325 0.24132943898439407
326 0.6313655860722065
327 0.9415087886154652
328 0.6905987299978733
329 0.20905403792858124
330 0.7085494920611382
331 0.6110005155205727
332 0.6044246330857277
333 0.6315652765333652
334 0.3164898604154587
335 0.22544826567173004
336 0.7110959216952324
337 0.6429209038615227
338 0.7040917426347733
339 0.32213791459798813
340 0.33264125883579254
341 0.13794849067926407
342 0.18163736909627914
343 0.5063668601214886
344 0.08263994753360748
345 0.17741183936595917
346 0.040047191083431244
347 0.30499348044395447
348 0.1457839086651802
349 0.8307451568543911
350 0.8620892651379108
351 0.058775074779987335
352 0.20394892618060112
353 0.02962465211749077
354 0.45339585840702057
355 0.6120906993746758
356 0.06801947951316833
357 0.4278506450355053
358 0.6377593018114567
359 0.7341255657374859
360 0.2411184459924698
361 0.7688821032643318
362 0.6419802531599998
363 0.8921374455094337
364 0.7842863872647285
365 0.9163391999900341
366 0.22630620002746582
367 0.43368781358003616
368 0.7732302211225033
369 0.7335263602435589
370 0.4002288915216923
371 0.022982075810432434
372 0.612592164427042
373 0.9451159909367561
374 0.23297855630517006
375 0.6862068362534046
376 0.02372850850224495
377 0.8043658919632435
378 0.09672371298074722
379 0.6725782714784145
380 0.9239038713276386
381 0.5297208614647388
382 0.894393689930439
383 0.25909171998500824
384 0.026175759732723236
385 0.5260870791971684
386 0.5017919130623341
387 0.6054256111383438
388 0.5676525682210922
389 0.7166332416236401
390 0.2598429098725319
391 0.7793352752923965
392 0.019644755870103836
393 0.6246334686875343
394 0.5085020288825035
395 0.019931036978960037
396 0.8565334118902683
397 0.7249077185988426
398 0.6229927130043507
399 0.6770725511014462
400 0.041158709675073624
401 0.5701327845454216
402 0.45815983414649963
403 0.797633707523346
404 0.41943609341979027
405 0.3039774261415005
406 0.19489959999918938
407 0.6351850368082523
408 0.4107263945043087
409 0.1238747350871563
410 0.8460221402347088
411 0.6526169665157795
412 0.6058843359351158
413 0.980314128100872
414 0.21484143286943436
415 0.8516891375184059
416 0.8179902248084545
417 0.2879728525876999
418 0.8093758523464203
419 0.7452450171113014
420 0.7478081211447716
421 0.34129753708839417
422 0.6280919499695301
423 0.4821808226406574
424 0.21043690666556358
425 0.7603692635893822
426 0.7145876213908195
427 0.9986022114753723
428 0.1981726810336113
429 0.19125007092952728
430 0.4281369112432003
431 0.5913276076316833
432 0.1480240821838379
433 0.647987924516201
434 0.14942168444395065
435 0.9462391771376133
436 0.49520373344421387
437 0.3559633791446686
438 0.46724359691143036
439 0.9696337208151817
440 0.6699728704988956
441 0.34124990925192833
442 0.8157265149056911
443 0.7666042521595955
444 0.3712904639542103
445 0.7603317089378834
446 0.6409525126218796
447 0.6663088016211987
448 0.521418247371912
449 0.32803716883063316
450 0.7882492616772652
451 0.6267883703112602
452 0.8040681257843971
453 0.18795962259173393
454 0.08470942080020905
455 0.007460203021764755
456 0.20715787634253502
457 0.7931749299168587
458 0.7813918143510818
459 0.7540724240243435
460 0.6229913160204887
461 0.1516486443579197
462 0.35754694044589996
463 0.5269223637878895
464 0.17007052153348923
465 0.4578862898051739
466 0.08032899722456932
467 0.898059006780386
468 0.05583059787750244
469 0.46253054216504097
470 0.9364426322281361
471 0.367989931255579
472 0.17508254200220108
473 0.05350786820054054
474 0.9566456228494644
475 0.826789878308773
476 0.49396607279777527
477 0.4129873104393482
478 0.9465180821716785
479 0.8007476255297661
480 0.23008202388882637
481 0.6144031397998333
482 0.7632733583450317
483 0.8067452982068062
484 0.6799475364387035
485 0.9271294511854649
486 0.6762378178536892
487 0.2710934579372406
488 0.33250560984015465
489 0.05486423894762993
490 0.9372604265809059
491 0.23386411368846893
492 0.2666853368282318
493 0.5944655947387218
494 0.8146222792565823
495 0.4257778115570545
496 0.3151732571423054
497 0.5303078293800354
498 0.7651275247335434
499 0.9268612414598465
500 0.3718456104397774
501 0.38264022395014763
502 0.063435859978199
503 0.7703269831836224
504 0.7057364545762539
505 0.4294060990214348
506 0.8707400821149349
507 0.1424649991095066
508 0.14950940012931824
509 0.28851306810975075
510 0.9243213459849358
511 0.747727531939745
512 0.1419486403465271
513 0.9432334564626217
514 0.14208218455314636
515 0.06479481235146523
516 0.5388296879827976
517 0.6226360574364662
518 0.6824612654745579
519 0.7526077516376972
520 0.08805067092180252
521 0.5060182139277458
522 0.8316901363432407
523 0.6532295793294907
524 0.7934283465147018
525 0.20503467321395874
526 0.15762732177972794
527 0.33021245151758194
528 0.12822114303708076
529 0.5512263476848602
530 0.6449560523033142
531 0.6461493447422981
532 0.46979330107569695
533 0.3812667056918144
534 0.30066845566034317
535 0.5703484900295734
536 0.28717897832393646
537 0.9258315563201904
538 0.022476021200418472
539 0.2801622748374939
540 0.974452793598175
541 0.5712255872786045
542 0.8936440199613571
543 0.4736989289522171
544 0.474481787532568
545 0.1402483880519867
546 0.6050914712250233
547 0.5696920976042747
548 0.5363433808088303
549 0.5168038196861744
550 0.04631343483924866
551 0.6221662275493145
552 0.7947952635586262
553 0.5398608185350895
554 0.011024214327335358
555 0.7570250406861305
556 0.08153622597455978
557 0.07877430692315102
558 0.8712766543030739
559 0.5291004553437233
560 0.25728755071759224
561 0.0981610156595707
562 0.9292158894240856
563 0.28296808153390884
564 0.1774286963045597
565 0.7068366594612598
566 0.3960338532924652
567 0.09168149530887604
568 0.26346566900610924
569 0.8620023839175701
570 0.5039745643734932
571 0.0793009027838707
572 0.6147695258259773
573 0.9010346718132496
574 0.04973120614886284
575 0.7572458945214748
576 0.354145810008049
577 0.638457465916872
578 0.9012697413563728
579 0.7821768559515476
580 0.6935927271842957
581 0.6175495274364948
582 0.5660421177744865
583 0.3576754629611969
584 0.7922017201781273
585 0.30859432369470596
586 0.8324299044907093
587 0.7795355096459389
588 0.8127809688448906
589 0.5188580304384232
590 0.30088062211871147
591 0.5877535864710808
592 0.8565293438732624
593 0.05353522300720215
594 0.044435933232307434
595 0.19214943796396255
596 0.8173641599714756
597 0.45222264528274536
598 0.917661264538765
599 0.7364497929811478
600 0.10626297444105148
601 0.5727289840579033
602 0.2219129577279091
603 0.8088834621012211
604 0.43309737369418144
605 0.9819965101778507
606 0.46865086257457733
607 0.9586613588035107
608 0.4276440553367138
609 0.6077059395611286
610 0.9336325190961361
611 0.26048557087779045
612 0.4461178258061409
613 0.7419363558292389
614 0.9492733031511307
615 0.8739151917397976
616 0.7208635918796062
617 0.1449677087366581
618 0.804788164794445
619 0.1643320955336094
620 0.28347359225153923
621 0.1357644461095333
622 0.22918149828910828
623 0.8080447241663933
624 0.42179157584905624
625 0.5539888553321362
626 0.25358685478568077
627 0.5454704463481903
628 0.4272666908800602
629 0.5473190806806087
630 0.4033569023013115
631 0.08329108729958534
632 0.20448234677314758
633 0.33087097480893135
634 0.16732299700379372
635 0.11516521498560905
636 0.9588903151452541
637 0.6617295667529106
638 0.463560800999403
639 0.9563013762235641
640 0.33679452911019325
641 0.1556006632745266
642 0.4763656221330166
643 0.891921654343605
644 0.7746382690966129
645 0.8574655167758465
646 0.7500536479055882
647 0.2251058928668499
648 0.7490922026336193
649 0.2653728872537613
650 0.2212761640548706
651 0.3035030998289585
652 0.3045349381864071
653 0.6130217462778091
654 0.1854185163974762
655 0.884843897074461
656 0.9077341742813587
657 0.39415599033236504
658 0.2684498056769371
659 0.14650604501366615
660 0.05770190432667732
661 0.47362062335014343
662 0.14532823488116264
663 0.8824761137366295
664 0.1219126544892788
665 0.6097670011222363
666 0.9257077984511852
667 0.14460621029138565
668 0.2998661994934082
669 0.7644037306308746
670 0.07503829896450043
671 0.9296418689191341
672 0.14865735918283463
673 0.13973521441221237
674 0.7712709829211235
675 0.8596719279885292
676 0.9550686292350292
677 0.27562567219138145
678 0.20090777426958084
679 0.47628071904182434
680 0.8820508718490601
681 0.4732012003660202
682 0.9179922789335251
683 0.3235637843608856
684 0.6548993103206158
685 0.13575545325875282
686 0.13785924389958382
687 0.03522871062159538
688 0.06469297409057617
689 0.7592798136174679
690 0.48628194257616997
691 0.5820205993950367
692 0.40814995393157005
693 0.5628110952675343
694 0.2876271717250347
695 0.29442595690488815
696 0.7282758317887783
697 0.5772408097982407
698 0.14517485350370407
699 0.8406816571950912
700 0.5669657699763775
701 0.28050174564123154
702 0.17183765396475792
703 0.6803664788603783
704 0.517919696867466
705 0.5790075287222862
706 0.682592835277319
707 0.3721477724611759
708 0.39069581404328346
709 0.02941005304455757
710 0.26564133539795876
711 0.135989960283041
712 0.8061149641871452
713 0.8874235227704048
714 0.014008458703756332
715 0.7400817275047302
716 0.6563239172101021
717 0.9278372228145599
718 0.33316900581121445
719 0.7871585562825203
720 0.3069455027580261
721 0.021233417093753815
722 0.22811976075172424
723 0.17596634477376938
724 0.36386604234576225
725 0.7515466846525669
726 0.5575463697314262
727 0.16690631583333015
728 0.986146304756403
729 0.4111683964729309
730 0.7877165898680687
731 0.42421282455325127
732 0.5435672998428345
733 0.6312195286154747
734 0.8357992731034756
735 0.35543937608599663
736 0.2303525060415268
737 0.9080183207988739
738 0.14393345266580582
739 0.08619540184736252
740 0.24625896662473679
741 0.5397531241178513
742 0.29128826037049294
743 0.6183172352612019
744 0.8780654892325401
745 0.8961922451853752
746 0.5477588847279549
747 0.6029574573040009
748 0.9471597522497177
749 0.011231943964958191
750 0.9650124758481979
751 0.764590822160244
752 0.7735806405544281
753 0.6919842176139355
754 0.884365301579237
755 0.18234317377209663
756 0.554039292037487
757 0.9863776080310345
758 0.14395751804113388
759 0.10020200163125992
760 0.11548109352588654
761 0.6677582375705242
762 0.0938878022134304
763 0.2434322014451027
764 0.8614078611135483
765 0.010182276368141174
766 0.48156388849020004
767 0.396424587816
768 0.557310439646244
769 0.31684350967407227
770 0.9311018399894238
771 0.7166984006762505
772 0.41462482511997223
773 0.3689010217785835
774 0.10755465924739838
775 0.7853171937167645
776 0.18912222981452942
777 0.8385006785392761
778 0.47235972434282303
779 0.6505008898675442
780 0.5800776369869709
781 0.25003544986248016
782 0.07521507889032364
783 0.44322754442691803
784 0.6689725741744041
785 0.3312595300376415
786 0.5312655158340931
787 0.14515599235892296
788 0.23046308755874634
789 0.2962619885802269
790 0.9336890168488026
791 0.43616724014282227
792 0.07798636704683304
793 0.806956198066473
794 0.956835187971592
795 0.7744022272527218
796 0.9236250706017017
797 0.4277535192668438
798 0.8510657399892807
799 0.4763343334197998
800 0.9472842775285244
801 0.2937610186636448
802 0.9068835005164146
803 0.5106828399002552
804 0.01068171113729477
805 0.3270454816520214
806 0.12725473567843437
807 0.4553847052156925
808 0.8480804152786732
809 0.8034919314086437
810 0.33960624411702156
811 0.6112985871732235
812 0.34843360632658005
813 0.659816712141037
814 0.18434923887252808
815 0.2235327549278736
816 0.2749596945941448
817 0.4526566006243229
818 0.5974180586636066
819 0.09469544887542725
820 0.8830668590962887
821 0.3083013668656349
822 0.1393096148967743
823 0.7094848826527596
824 0.9825486168265343
825 0.4361426383256912
826 0.49940067902207375
827 0.6343972124159336
828 0.8368491046130657
829 0.8239891566336155
830 0.5817268006503582
831 0.26695794984698296
832 0.8251560814678669
833 0.9248564690351486
834 0.5623248368501663
835 0.6260208785533905
836 0.7061950974166393
837 0.35192690417170525
838 0.4722334034740925
839 0.2341378629207611
840 0.7428124099969864
841 0.676091518253088
842 0.34089260920882225
843 0.43232638388872147
844 0.7162432447075844
845 0.8858141042292118
846 0.24894901365041733
847 0.4783491939306259
848 0.8974647857248783
849 0.18165959417819977
850 0.549512691795826
851 0.9022783078253269
852 0.22852494195103645
853 0.6136316508054733
854 0.7439419440925121
855 0.2230568490922451
856 0.9965047724545002
857 0.7880945354700089
858 0.13642608001828194
859 0.3548290468752384
860 0.9054138511419296
861 0.16512757167220116
862 0.4383248798549175
863 0.5537986308336258
864 0.5939921773970127
865 0.06147589907050133
866 0.8128983192145824
867 0.23626143112778664
868 0.33808158710598946
869 0.15743260830640793
870 0.6285727918148041
871 0.7545640021562576
872 0.17525189369916916
873 0.3705788776278496
874 0.18348103016614914
875 0.01658671349287033
876 0.26807570084929466
877 0.14690691977739334
878 0.8317733369767666
879 0.5198378339409828
880 0.763828419148922
881 0.06330807507038116
882 0.4619281515479088
883 0.9686682298779488
884 0.8837242610752583
885 0.6510326080024242
886 0.7554743140935898
887 0.7590924911201
888 0.6717019528150558
889 0.045806776732206345
890 0.7755888886749744
891 0.8072902671992779
892 0.8435271270573139
893 0.8740457184612751
894 0.06868184730410576
895 0.03751016780734062
896 0.3693615719676018
897 0.9886777512729168
898 0.3758069984614849
899 0.1187380887567997
900 0.15668845176696777
901 0.28323546424508095
902 0.01200433075428009
903 0.10138201341032982
904 0.44479990378022194
905 0.8583870008587837
906 0.7303038984537125
907 0.0649799220263958
908 0.8803954049944878
909 0.7987886294722557
910 0.0481371134519577
911 0.5285710990428925
912 0.6619745008647442
913 0.5941664986312389
914 0.6867474466562271
915 0.2685566507279873
916 0.4777088910341263
917 0.03262460604310036
918 0.8396652154624462
919 0.7206603474915028
920 0.6577586121857166
921 0.19932595267891884
922 0.3237609900534153
923 0.735039696097374
924 0.6677758395671844
925 0.30874327942728996
926 0.1656726747751236
927 0.3981436975300312
928 0.06478754058480263
929 0.8177617266774178
930 0.7489241287112236
931 0.4183996357023716
932 0.4277760311961174
933 0.7361074201762676
934 0.9143976606428623
935 0.28413084149360657
936 0.43137215077877045
937 0.3453524746000767
938 0.6853475458920002
939 0.8287518732249737
940 0.40970125421881676
941 0.02284429594874382
942 0.21043970808386803
943 0.12900599092245102
944 0.9900267533957958
945 0.3362513296306133
946 0.30774247646331787
947 0.17947155982255936
948 0.4260844774544239
949 0.5743661299347878
950 0.9485374875366688
951 0.6530508659780025
952 0.5462977364659309
953 0.7025036029517651
954 0.3595898263156414
955 0.8761150129139423
956 0.7281524278223515
957 0.669139351695776
958 0.16610223054885864
959 0.17563008144497871
960 0.2397560141980648
961 0.3739938922226429
962 0.12472325563430786
963 0.9887973926961422
964 0.8359992913901806
965 0.530584130436182
966 0.8426952064037323
967 0.1532827541232109
968 0.12748785689473152
969 0.5301025360822678
970 0.3822516240179539
971 0.21031242981553078
972 0.5697218477725983
973 0.7263316921889782
974 0.21345430612564087
975 0.4178093448281288
976 0.4649053029716015
977 0.7120995856821537
978 0.668353509157896
979 0.3487722687423229
980 0.09564287215471268
981 0.8486335724592209
982 0.9489401839673519
983 0.3222428523004055
984 0.27333836257457733
985 0.49142657592892647
986 0.17959896847605705
987 0.6007902473211288
988 0.5475866161286831
989 0.8117519281804562
990 0.973519392311573
991 0.10785165056586266
992 0.005372125655412674
993 0.4275859221816063
994 0.14897451177239418
995 0.2755996100604534
996 0.5189600102603436
997 0.4728871211409569
998 0.19818789511919022
999 0.10557016357779503
1000 0.5296723395586014
@mathiasbynens

This comment has been minimized.

Copy link
Owner Author

@mathiasbynens mathiasbynens commented May 29, 2013

Source: http://octane-benchmark.googlecode.com/svn/latest/base.js

Obligatory license text:

// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
//       notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
//       copyright notice, this list of conditions and the following
//       disclaimer in the documentation and/or other materials provided
//       with the distribution.
//     * Neither the name of Google Inc. nor the names of its
//       contributors may be used to endorse or promote products derived
//       from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@mathiasbynens

This comment has been minimized.

Copy link
Owner Author

@mathiasbynens mathiasbynens commented May 29, 2013

Result #1 is equal to result #141,316,600 (0x86C51F8): 0.9872818551957607. The cycle restarts there.

@talltyler

This comment has been minimized.

Copy link

@talltyler talltyler commented Dec 4, 2015

Thank you.

@kirillgroshkov

This comment has been minimized.

Copy link

@kirillgroshkov kirillgroshkov commented Jan 19, 2021

Very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment