image thumbnail

Random Number Generator

version (1.63 KB) by Sander Khowaja
This code generates a random number using Mersenne Twister Method


Updated 12 Dec 2016

View License

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 (2022). Random Number Generator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!