Random number generation

Function which generation n random numbers between 0 and 1

You are now following this Submission

Function which generation n random numbers between 0 and 1 using the formula ri = (177786 ri-1 + 64654 ri-6) mod (2^31-1)

Cite As

Paul de Wit (2026). Random number generation (https://www.mathworks.com/matlabcentral/fileexchange/12747-random-number-generation), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Added persistant seed values

tic,prng(10000);,toc
Elapsed time is 0.003760 seconds.