/* nag_random_exp (g05dbc) 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_exp (g05dbc) 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_exp (g05dbc). * Pseudo-random real numbers, (negative) exponential * distribution */ Vprintf("%10.4f\n",nag_random_exp(2.0)); return EXIT_SUCCESS; }