in reply to Re: Random number generator
in thread Random number generator
That a really neat idea.
As \undef always returns the same value regardless of how many times you call it within a given script, that will effectively turn the module into a singleton. This has the very desirable side-effect of ensuring that the random sequence isn't messed by calling multiple instances. It neatly removes the need to serialise the access.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Random number generator
by Abigail-II (Bishop) on Apr 01, 2003 at 09:43 UTC | |
by BrowserUk (Patriarch) on Apr 01, 2003 at 10:12 UTC |