-
1 Comment
Swati Sarangi
on 10 Nov 2020
What's wrong with this solution? Can someone tell me?
function [x1,x2] = rollDice()
rng(0,'twister');
r=randperm(6,10)
x1 = r(1)
x2 =r(2)
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!