Random Perl Content

James Laver james.laver at gmail.com
Sun May 19 08:10:39 BST 2013


On 19 May 2013, at 07:29, Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:

> Why not just write each of your streams of random numbers to a file and
> then just re-read the file when you need to reuse that sequence?

That involves quite a lot more careful management.

The approach of logging seeds is quite widely used. In fact MySQL replication sends out the seed in each replica because they do it ass backwards and forgot someone night actually embed random() in their query.

James


More information about the london.pm mailing list