Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

random number generator for floats

float r3 = LO + static_cast <float> (rand()) /( static_cast <float> (RAND_MAX/(HI-LO)));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #number #generator #floats
ADD COMMENT
Topic
Name
8+6 =