Link to home
Start Free TrialLog in
Avatar of Jasbir21
Jasbir21

asked on

Random generator - urgent

Hi,

In matlab, there is this random generator  that is called rand "that returns a pseudorandom, scalar value drawn from a uniform distribution on the unit interval."

Lets say I need to find the equilavent in java, is nextFloat, nextDouble or the Random generator itself.

Math.random()

Pls help.thanks
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jasbir21
Jasbir21

ASKER

Thanks a lot
:-)