a random no. is just random!:]
Chat with our AI personalities
randomly look...
Can't tell. It's random.
Or you can do Rnd*232 Where 232 is a number of your choice higher or lower number. I have used this in a Timer and works well.Valtros------------------------------------------------------------------------------------------------------------------AnswerUse the random function. The example below will give a random number between 1-100r = Random(1, 100)
An irrational number cannot be rational, so choosing at random is an irrelevance.
RAND: Rand uses a multiplicative congruential random number generator with period232 to return successive pseudo-random numbers in the range 0 to RAND_MAX. Return Value: Rand returns the generated pseudo-random number. RANDOM(): Random returns a random number between 0 and (num-1).random(num) is a macro defined in STDLIB.H. RANDOMIZE(): Randomize initializes the random number generator with a random value. Because randomize is implemented as a macro that calls the time function prototyped in TIME.H, you should include TIME.H when you use this routine SRAND(): The random number generator is reinitialized by calling srand with an argument value of 1.The generator can be set to a new starting point by calling srand with a given seed number.