MATLAB_RANDOM is a directory of MATLAB programs which illustrate the use of Matlab's random number generators.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
ASA183, a MATLAB library which implements a pseudorandom number generator, by Wichman and Hill. This is a MATLAB version of Applied Statistics Algorithm 183.
C_RANDOM, C programs which illustrate the use of C's random number generator routines.
CPP_RANDOM, C++ programs which illustrate the use of the C++ random number generator routines.
F90_RANDOM, FORTRAN90 programs which illustrate the use of Fortran's random number generator routines.
NORMAL, a MATLAB library which computes elements of a sequence of pseudorandom normally distributed values.
RANDLC, a MATLAB library which generates a sequence of pseudorandom numbers, used by the NAS Benchmark programs.
UNIFORM, a MATLAB library which computes elements of a uniform pseudorandom sequence.
RAND_TEST is a simple example which demonstrates the use of the rand() function to generate uniform random numbers, and to set the seed.
RANDN_TEST is a simple example which demonstrates the use of the randn() function to generate normal random numbers, and to set the seed.
RNG_TEST demonstrates how the new RNG() function is used to initialize and manipulate the state of the RAND and RANDN random number generators.
You can go up one level to the MATLAB source codes.