/* nag_random_init_repeatable (g05cbc) Example Program. * * Copyright 1990 Numerical Algorithms Group. * * Mark 1, 1990. */ #include #include #include #include int main(void) { Integer i; Integer seed = 0; Vprintf("nag_random_init_repeatable (g05cbc) Example Program Results\n"); /* nag_random_init_repeatable (g05cbc). * Initialize random number generating functions to give * repeatable sequence */ nag_random_init_repeatable(seed); for (i=1; i<=5; i++) /* nag_random_continuous_uniform (g05cac). * Pseudo-random real numbers, uniform distribution over * (0,1) */ Vprintf("%10.4f\n",nag_random_continuous_uniform()); return EXIT_SUCCESS; }