image thumbnail

initialize normal random number generator

version 1.0.0.0 (1.49 KB) by Phillip M. Feldman
sets the state for Matlab's normal (Gaussian) random number generator

1.8K Downloads

Updated 13 May 2009

View License

initrandn() sets the state for Matlab's normal (Gaussian) random number generator. (Matlab has two generators-- 'rand' and 'randn'-- for uniform and normal random numbers, respectively. Each of these maintains its own state).

If the optional calling argument is missing, initrandn() prompts the user to enter a seed interactively. If the optional calling argument is present but is an empty matrix, or if the user input is empty, a default seed is generated based on the current date and time.

Cite As

Phillip M. Feldman (2021). initialize normal random number generator (https://www.mathworks.com/matlabcentral/fileexchange/24108-initialize-normal-random-number-generator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!