NAME
kjb_rand_2 - Returns a random double between 0 and 1.
SYNOPSIS
#include "l/l_sys_rand.h"
Example compile flags (system dependent):
-DLINUX_386 -DLINUX_386_P4
-I/home/kobus/include
-L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
-lKJB -llapack -lblas -lg2c -lXext -lX11
double kjb_rand_2(void);
DESCRIPTION
This routine returns a random double between 0 and 1 using drand48(). It
provides a second stream of random numbers, separate from kjb_rand. If no
other arrangements have been made, then the random number generator is
seeded with zero. The generator may be seeded at any point by the user
throught the option "seed_2". The seed so specified may be a number, or the
special value "*" which requests that the generator be seed by the time of
day.
NOTE
Normally, the library routines use kjb_rand_2, and the higher level
routines use kjb_rand. Both random number streams can be seeded, but
only kjb_rand can be restarted.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTOR
Kobus Barnard
SEE ALSO
kjb_rand
,
kjb_seed_rand_with_tod
,
kjb_seed_rand
,
kjb_seed_rand_with_3_short
,
get_rand_seed
,
kjb_seed_rand_2_with_tod
,
kjb_seed_rand_2