How To Generate two Non Repeating Random integers from 2 to 6?

 채택된 답변

Daniel M
Daniel M 2019년 11월 5일

1 개 추천

x = 2:6;
y = x(randperm(length(x),2));

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 11월 5일

답변:

2019년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by