> Just use another random boolean.

> boolean sign = Random.nextBoolean();

> float my_float = Random.nextFloat * (sign ? +1 : -1);

I usually use:

float myfloat = (Random.nextFloat * (2*range)) � range;

Cheers

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to