/* nag_random_normal (g05ddc) Example Program. * * Copyright 1990 Numerical Algorithms Group. * * Mark 1, 1990. */ #include #include #include #include int main(void) { Integer seed = 0; Integer i; Vprintf("nag_random_normal (g05ddc) 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_normal (g05ddc). * Pseudo-random real numbers, Normal distribution */ Vprintf("%10.4f\n",nag_random_normal(1.0,1.5)); return EXIT_SUCCESS; }