X random integers between 1 and 25
Mostrar comentarios más antiguos
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 comentarios
Ahmed raafat
el 17 de Oct. de 2017
randi command has the power to help you
did you wrote it in randi([1 25],[1 1]) ??
david smart
el 17 de Oct. de 2017
david smart
el 17 de Oct. de 2017
Editada: david smart
el 17 de Oct. de 2017
Sean de Wolski
el 17 de Oct. de 2017
usernoise = str2double(usernoise{1})
Usernoise is returned as a cell array containing strings.
Respuestas (1)
Sean de Wolski
el 17 de Oct. de 2017
randperm(25,x)
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!