help On random number 
Author Message
 help On random number
i have a code that im working on for random numbers for dice. i get it to do
random numbers but everytime i run the program it gives me the same random
order can anyone help me.

thanks

here is the code i have

    d2 = Int(7 * Rnd(1))
    d1 = Int(7 * Rnd(1))
    ingDice1 = d2 + d1



Mon, 28 Jun 2004 10:12:20 GMT
 help On random number

Look up the Randomize command..Use it before you actually want ti see the
random numbers.


Quote:
> i have a code that im working on for random numbers for dice. i get it to
do
> random numbers but everytime i run the program it gives me the same random
> order can anyone help me.

> thanks

> here is the code i have

>     d2 = Int(7 * Rnd(1))
>     d1 = Int(7 * Rnd(1))
>     ingDice1 = d2 + d1



Mon, 28 Jun 2004 13:24:43 GMT
 help On random number
During the program's startup routine, use the Randomize function.

Randomize Timer

works pretty well. Only do this once - using it multiple times
will produce less random results.


Quote:
> i have a code that im working on for random numbers for dice. i get it to
do
> random numbers but everytime i run the program it gives me the same random
> order can anyone help me.

> thanks

> here is the code i have

>     d2 = Int(7 * Rnd(1))
>     d1 = Int(7 * Rnd(1))
>     ingDice1 = d2 + d1



Tue, 29 Jun 2004 02:32:28 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. need help - generating random numbers

2. Help w/ Random Numbers???????

3. Help using Random numbers

4. Help: Assign random numbers using query

5. random numbers that are more random

6. Generation of Random Number HELP

7. Random Number Generation Help??

8. random number generation???

9. Query to select random number of records from table

10. Random number generation

11. How to generate random numbers!

12. 'random' numbers


 
Powered by phpBB® Forum Software