rand_extended computes a random number in the interval [a,b]

rand_extended computes a random number in the interval [a,b]
208 Downloads
Updated 1 Jul 2011

View License

rand_extended computes a random number in the interval [a,b]
It is basically an extended version of the command rand
Inputs:
a: the lower bound of the interval
b: the upper bound of the interval
m,n(optional): dimensions of the matrix of random numbers
to be generated
Outputs:
M: random number/matrix in the interval [a,b]

Cite As

Nassim Khaled (2024). rand_extended computes a random number in the interval [a,b] (https://www.mathworks.com/matlabcentral/fileexchange/32023-rand_extended-computes-a-random-number-in-the-interval-a-b), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Random Number Generation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0