Thread
:
Templated Random Number Generator
View Single Post
Jul 6th, 2007, 7:19 PM
#
5
DaWei
Resident Grouch
Join Date: Jun 2005
Posts: 6,453
Rep Power:
10
You understand that the return of rand, as usually implemeted in C/C++, is an integer, right? Casting doesn't give you a real number.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner:
Grumpy on C++ Exceptions
DaWei on Pointers
DaWei
View Public Profile
Visit DaWei's homepage!
Find More Posts by DaWei