Random Numbers Between Two Values

Ranged random numbers between two values and with the possibility of setting duplicate numbers in the output matrix.
Updated 25 Apr 2019

View License

* The function input Minn and Maxx are the range for the random numbers
* NumbOfRandRep is the number of random numbers duplicate in the matrix
* NumbsNeeded is the size of the matrix
* Output will be a column vector and the its size will be (NumbsNeeded x 1)

Cite As

Abdullah Almahous (2024). Random Numbers Between Two Values (https://www.mathworks.com/matlabcentral/fileexchange/71335-random-numbers-between-two-values), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
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