Pseudorandom number generator image: Difference between revisions
Content added Content deleted
(Added Go) |
m (→{{header|Perl}}: state the underlying PRNG engine) |
||
Line 208: | Line 208: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
Perl unified the PRNG with [https://github.com/Perl/perl5/blob/11ab6d3b461cdc8944e706656209dd2a34f2f01d/util.c#L5793 its own internal drand48() implementation ] on all platforms since [https://perldoc.perl.org/5.20.0/perldelta.html#rand-now-uses-a-consistent-random-number-generator v5.20.0]. Without a manual srand, Perl by default source the seed from [https://github.com/Perl/perl5/blob/11ab6d3b461cdc8944e706656209dd2a34f2f01d/util.c#L4709 "/dev/urandom" ] if it is available so there shouldn't be any prime prerequisite. |
|||
<lang perl>use strict; |
<lang perl>use strict; |
||
use warnings; |
use warnings; |