develooper Front page | perl.perl6.language | Postings from April 2010

Re: r30369 - docs/Perl6/Spec/S32-setting-library

Thread Previous | Thread Next
From:
yary
Date:
April 12, 2010 10:30
Subject:
Re: r30369 - docs/Perl6/Spec/S32-setting-library
Message ID:
j2o75cbfa571004121030za06e6447mb86e6300e30a9821@mail.gmail.com
Tangentially, I'm a little surprised there isn't a random stream
factory in the core. They're useful for reproducible testing. With a
global random number generator, even if you seed it, another module
can call "rand" and alter the sequence you get from your "rand" calls.
I think something like "srand" that returns a pseudo-random iterator
would be useful.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About