making a random unique vector from 0 to 9999

1 visualización (últimos 30 días)
Jose Toledo
Jose Toledo el 20 de Sept. de 2019
Respondida: madhan ravi el 20 de Sept. de 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

Respuestas (1)

madhan ravi
madhan ravi el 20 de Sept. de 2019
doc randperm

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by