View Single Post
Old Jul 6th, 2007, 7:09 PM   #4
Ben.Dougall
Programmer
 
Ben.Dougall's Avatar
 
Join Date: Jul 2007
Location: London, Ontario, Canada
Posts: 34
Rep Power: 0 Ben.Dougall is on a distinguished road
Send a message via MSN to Ben.Dougall
cpp Syntax (Toggle Plain Text)
  1. static_cast<T>(low + rand() / ( RAND_MAX / ( high - low ) + 1 ));

Thank you Lectric, the first link you gave me seems to have done the job.
Ben.Dougall is offline   Reply With Quote