Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → About Rand....
About Rand....
2002-02-24, 3:39 PM #1
I know it gives you a random flex number from 0.1 to 1.0, but it won't give you a number like this will it?: 0.3910231 etc.
(Basically, does it only use the tenths digit?)

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...
2002-02-24, 5:48 PM #2
Instead of posting here, you could have done this sensible thing ,and tested it for yourself:


Printflex(Rand());


No offense intended. [http://forums.massassi.net/html/smile.gif]

In answer to your question, no, it doesnt just use the tenths place. It will give you a number from 0.00000 to 1.00000.


TIP: If you need a random number between 0 and 10, add an int to your symbols and do this:

New_int = Rand() * 10;

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!