function [ x, seed ] = r8_normal ( a, b, seed ) %% R8_NORMAL returns a scaled pseudonormal R8. % % Modified: % % 17 July 2006 % % Author: % % John Burkardt % % Parameters: % % Input, real A, the mean of the normal PDF. % % Input, real B, the standard deviation of the normal PDF. % % Input, integer SEED, a seed for the random number generator. % % Output, real X, a sample of the standard normal PDF. % % Output, integer SEED, an updated seed for the random number generator. % x = a + b * r8_normal_01 ( seed );