How to make a random number generator in matlab that is based on percentages?
- by Ben Fossen
I am currently using the built in random number generator.
for example
nAsp = randi([512, 768],[1,1]);
512 is the lower bound and 768 is the upper bound, the random number generator chooses a number from between these two values.
What I want is to have two ranges for nAsp but I want one of them to get called 25% of the time and the other 75%…