Friday, 30 August 2013

random numbers generation from 0 to 0.5

random numbers generation from 0 to 0.5

can we generate random numbers for floating point numbers if I use this
function it is showing
randi([0 0.5])
Error using randi First input must be a positive scalar integer value
IMAX, or two integer values [IMIN IMAX] with IMIN less than or equal to
IMAX.
is there any solution or we should write our own code for random numbers
generation

No comments:

Post a Comment