Im using randsample() but im getting an error
17 views (last 30 days)
Im using randsample to make the program choose a random element from an array,
A=[2 3 4 5];
but im getting an error that says 'randsample' requires Statistics and Machine Learning Toolbox.
So how can i make it work, or is there any other way i can make a random selection.