How can I generate random numbers in a range with decimal steps?
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexandra Pongs
am 25 Jun. 2017
Kommentiert: Image Analyst
am 25 Jun. 2017
Hi
How can I generate a random decimal number inbetween a range of 0 and 0.5 (i.e. 0, 0.1, 0.2, 0.3, 0.4, 0.5)?
1 Kommentar
Image Analyst
am 25 Jun. 2017
I'm not sure what you're asking. Do you want one random number in a range 0-0.5 like you'd get from
r=0.5*rand()
or do you want to pick a number at random from that list of 6 predefined numbers you listed? Or something other than those two options?
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Random Number Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!