random numbers !

Torbjorn Granlund tege@swox.com
18 Dec 2002 17:06:18 +0100


bom brill <bombrill_gmp@yahoo.fr> writes:

  So, I expect, that each time, I'll run the programm, I'll get some
  new numbers.. because they are chosen randomly.. but it's not the
  case, and I always get the same.

That's how things are supposed to work.  All computer random
number generators work like that--i.e., they are psuedo random.
To change the sequence of psuedo random numbers, you need to
seed the generators.  Please see the GMP manual for details
on how to do that.

-- 
Torbjörn