X random integers between 1 and 25
9 views (last 30 days)
Show older comments
hello, im trying to create code to give me X random integers (defined by dialog box) between 1 and 25. i have a working dialog box to give me the X but i cant get the randi function to give me what i need. any help is appreciated. thanks
4 Comments
Sean de Wolski
on 17 Oct 2017
usernoise = str2double(usernoise{1})
Usernoise is returned as a cell array containing strings.
Answers (1)
See Also
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!