safarin
March 30th, 2011, 03:10 PM
Hi,
I trying to make a very simple program to give a random value.
Then I got stuck, rand() function only give a random value in integer.
The random value must not in range of 0 to 1 but something more than that, example from 0 to 40 in double or floating point.
Do anybody have any idea, facing this problem or found any function in C that can solve my problem?
Thank you :)
I trying to make a very simple program to give a random value.
Then I got stuck, rand() function only give a random value in integer.
The random value must not in range of 0 to 1 but something more than that, example from 0 to 40 in double or floating point.
Do anybody have any idea, facing this problem or found any function in C that can solve my problem?
Thank you :)