Team-Fly
Previous Section Next Section

B.11 Generation of Pseudorandom Numbers

void
seedl (const LINT& seed);

initialization of the 64-bit random number generator based on linear congruences with initial value seed

LINT
randl (const int l);

return a LINT random number of length l bits

LINT
randl (const LINT& rmin,
     const LINT& rmax);

return a LINT random number r with rmin r rmax

int
seedBBS (const LINT& seed);

initialization of BBS random number generator with initial value seed

LINT
randBBS (const int l);

return a LINT random number of length l bits

LINT
randBBS (const LINT& rmin,
     const LINT& rmax);

return a LINT random number r with rmin r rmax


Team-Fly Previous Section Next Section