3 ms·
> You can try running this code yourself and see if you get the same answers. This experiment is repeatable. OpenSUSE: 483 0.305 484 0.293 485 0.2
by pyjarrett 3y ago
> You can try running this code yourself and see if you get the same answers. This experiment is repeatable.
OpenSUSE:
483 0.305
484 0.293
485 0.283
486 0.275
487 0.3
488 0.302
489 0.304
490 0.274
491 0.274
492 0
493 0.285
494 0
495 0.271
496 0
497 0.289
498 0
499 0.294
500 0
501 0.306
502 0
503 0.31
504 0
505 0.275
506 0
507 0.285
508 0
509 0.289
510 0
511 0.282
512 0
513 0.301
514 0
515 0.266
516 0
517 0.289
518 0
519 0.291
520 0
521 0.309
522 0
523 0.325
524 0
525 0.358
526 0
527 1
528 0
529 0
530 0
531 0
532 0
533 0
534 0
That's wild.
I don't see this with mt19937, but I did see these funny nuggets with unseeded `rand()` on Windows:
255 0.3
256 0
257 0.289
258 0.306
...
511 0.262
512 0
513 0.275