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_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


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

DOCUMENTER

Kobus Barnard

SEE ALSO

set_random_options , kjb_rand , kjb_rand_st , kjb_seed_rand_with_tod , kjb_seed_rand , kjb_seed_rand_with_3_short , get_rand_seed , kjb_rand_2_st , kjb_seed_rand_2_with_tod , kjb_seed_rand_2