unrepeated integers from randi function
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
for the randi function for example
randi([2,6],1,4)
this basically creates 4 random integers from 2 to 6
eg. 2, 5,4,2
how can i do the same but generating unrepeated integers?
in the example the integer 2 is repeated twice and i dont want that for a randi function of a large range
댓글 수: 0
답변 (1개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!