generatenon-repeated random columns in 3 row

2 views (last 30 days)
how can i generate 10 non repeated columns in 3 row? with mod of 57.
the present coding is like this:
a=100;
random=randi(a,3,10);
balance=mod(random,57)

Accepted Answer

Walter Roberson
Walter Roberson on 13 May 2015
Hint: unique(balance, 'rows', 'stable')

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!