Mathematics > Random Number Generation

10 functions in MATLAB › Mathematics > Random Number Generation.

randiRandom integers drawn uniformly from a range.
randnNormally distributed random numbers with mean 0 and variance 1.
randpermRandom permutation of the integers 1 to n.
RandStreamObject that holds an independent random number stream.
RandStream.createCreates a random number stream with a named generator.
RandStream.getGlobalStreamReturns the stream used by rand, randn, randi and randperm.
RandStream.listLists the random number generator algorithms available.
RandStream.setGlobalStreamMakes a given stream the global random stream.
reset (RandStream)Returns a random stream to its initial state, or to a new seed.
rngControls the seed and generator of the global random number stream.