How to generate same set of random numbers?
56 views (last 30 days)
Abhishek Jain on 12 Oct 2016
You can control random number generation using 'rng()' function. The usage is rng(seed).
rng(seed) seeds the random number generator using the nonnegative integer seed so that rand, randi, and randn produce a predictable sequence of numbers.
Hope that helps..!!