Random Number Generator
Version 1.0.0.0 (1.63 KB) by
Sander Khowaja
This code generates a random number using Mersenne Twister Method
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 .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
