Random numbers
Random numbers
I want to program a simple football manager game and I wonder if Pure Basic have support for random numbers ? A litle example of how do I generate them will be appriciated.
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
You are going to create a football manager and you don't know how to get a random nuber?
It's all in the help file!

It's all in the help file!
Syntax
Result = Random(Maximum)
Description
Returns a random number between and including 0 and the Maximum value. Additionally RandomSeed() can be used to change the actual seed of random number.
Note: each times a program start, a new seed is generated, so RandomSeed() is only useful when the programmer when always the same random number in the same order.
I like logic, hence I dislike humans but love computers.