On Friday, 3 January 2014 at 01:01:21 UTC, Frustrated wrote:
On Thursday, 2 January 2014 at 20:38:10 UTC, Jeroen Bollen wrote:
[...]
e.g.,

seed(k);
for(i = 1..10)
print(rnd(i));

and

for(i = 1..10)
{
seed(time);
print(rnd(i));
}

will both produce random sequences of numbers(and random sequences of numbers are "identically random".
[...]

The second example is error-prone. If "time" var doesn't change between cycle, it's not random at all.

Reply via email to