Code covered by the BSD License  

Highlights from
initialize normal random number generator

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.49 KB File ID: #24108

initialize normal random number generator

by Phillip M. Feldman

 

13 May 2009

sets the state for Matlab's normal (Gaussian) random number generator

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
random Phillip M. Feldman 14 May 2009 09:42:08
random numbers Phillip M. Feldman 14 May 2009 09:42:08
random number generator Phillip M. Feldman 14 May 2009 09:42:08
normal Phillip M. Feldman 14 May 2009 09:42:08
gaussian Phillip M. Feldman 14 May 2009 09:42:08
initialize Phillip M. Feldman 14 May 2009 09:42:08
initialization Phillip M. Feldman 14 May 2009 09:42:08

Contact us at files@mathworks.com