hopes has asked for the wisdom of the Perl Monks concerning the following question:
srand (time ^ ($$ + ($$ << 11))); print join ",", map { srand (time ^ ($$ + ($$ << 11))); $_=int(rand(10)) }(0..10);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: srand and seed
by japhy (Canon) on Oct 23, 2001 at 03:54 UTC | |
|
Keep this in mind
by Fletch (Bishop) on Oct 23, 2001 at 04:36 UTC | |
by tenya (Beadle) on Nov 04, 2001 at 00:43 UTC | |
|
Re: srand and seed
by hopes (Friar) on Oct 23, 2001 at 04:03 UTC | |
by fokat (Deacon) on Oct 23, 2001 at 05:17 UTC |