[ODE] Yet another rand function

Brett Jones stormsharebrett at yahoo.com
Wed Jun 22 12:44:48 MST 2005


#define Rand0To1() (( rand() & 32767 ) * ( 1.0f /
32767.0f ))

Works fine for me but does return 1 sometimes
Brett

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the ODE mailing list