Random number, Random integer

3 views (last 30 days)
dhiman banerjee
dhiman banerjee on 5 Nov 2019
Answered: Daniel M on 5 Nov 2019
How To Generate two Non Repeating Random integers from 2 to 6?

Accepted Answer

Daniel M
Daniel M on 5 Nov 2019
x = 2:6;
y = x(randperm(length(x),2));

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!