making a random unique vector from 0 to 9999

1 view (last 30 days)
Jose Toledo
Jose Toledo on 20 Sep 2019
Answered: madhan ravi on 20 Sep 2019
How would I make a random unique vector from 0 to 9999? I
have tried using randi([0,9999]) and looping it 10,000 times, but I have some numbers that repeat

Answers (1)

madhan ravi
madhan ravi on 20 Sep 2019
doc randperm

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!