Perl: the Markov chain saw | |
PerlMonks |
Re^6: Quantum Weirdness and the Increment Operatorby BrowserUk (Patriarch) |
on Jun 25, 2004 at 03:28 UTC ( [id://369541]=note: print w/replies, xml ) | Need Help?? |
Yes and no. Unless I use srand, print rand() for 1.. 100; will likely give me different output for each run of the program. So no, the output will not be the same. Yes, the output will be 100 random(ish) numbers between 0 and 1. The return order of keys %hash since 5.8.something is deliberately randomised, so the definition of the order is that they will be random. This is different to pre-5.8.something in that the order was previously "an order", that was neither random nor easily predictable, but was consistant between runs of the same program on a given build. The order is both defined, and explainable.
In Section
Meditations
|
|