Random Number Generator

This code generates a random number using Mersenne Twister Method

You are now following this Submission

This code is for generating random numbers without using rng or rand functions of MATLAB. This was one of my weekly assignments, therefore, anybody can edit, modify or improvise the code as per their requirement and application. This code generates random number using Mersenne Twister Method. Execute the demo file and generate the random number. Change the seed value to generate different sequence of random numbers.

Cite As

Sander Khowaja (2026). Random Number Generator (https://www.mathworks.com/matlabcentral/fileexchange/60692-random-number-generator), 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