Hi,
I understand what a pseudo random generator is (the same sequence of "random"
variables, given a seed)...
NS manual (chapter 25.1): Each random variable in a single substream can
produce up to x random numbers before overlapping. And the substream is
initiated with the seed. This is why I d
Hi,
I don't think seed 1 has randomly 12 twice. The thing is: the seed has changed
from seed=1 (the first 12) to seed=592852 (the second 12), and I don't
understand why. And I don't want that, in order to guaranty DIFFERENT integers.
With your example (seed=12345), you got 5 different inte
Hello,
I try to produce a random set of 5 DIFFERENT integers in [0 21], using the
following code:
set rng [new RNG]
$rng seed 1
for {set i 0} {$i < 5} {incr i 1} {
puts "seed [$rng seed]"
set node [$rng integer 21]
puts "random integer $node"
}
Output:
seed 1
random integer 11
seed 1
random in