making a random unique vector from 0 to 9999

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

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

질문:

2019년 9월 20일

답변:

2019년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by