|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
randomize or generate?
i am making a math program. but can i make a label what automatically randomized or generated math questions??
or do i need to make a Array? how can i do it? can you tell me the codes i can juse best? |
|
#2
|
|||
|
|||
|
I believe it is rnd * the number you wish to be the maximum. If you store it to an integer, it will get rid of the decimal.
rnd returns a value from .00001 to .99999. To use it as an integer, use this format: num = rnd*6+1 That will make a random integer from 1 to 6, assuming num is an integer. If you do not add one, rnd*6 will be an integer from 0 to 5. |
|
#3
|
|||
|
|||
|
it generate only long values. if we convert to integer same numbers repeates manytimes.any possibility to generate random integer value which is not repeats
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > randomize or generate? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|