MATLAB Examples

Generate Discrete Uniform Random Numbers

Pick a random sample of 10 from a list of 553 items.

rng default;  % for reproducibility
numbers = unidrnd(553,1,10)
numbers =

   451   501    71   506   350    54   155   303   530   534