|
Subject:
|
SNAKE AND LADDER GAME
|
|
Posted By:
|
saptarshi
|
Post Date:
|
1/24/2007 9:52:08 AM
|
Hello everybody, I'm developing a game of "snake & ladder". Where i'm generating a random no.between 1&6(dice) and adding all the numbers by hitting command button. Howcan I do this? Thanks in advance. -Saptarshi
|
|
Reply By:
|
gbianchi
|
Reply Date:
|
1/24/2007 10:31:54 AM
|
hi there...
and you are using what version of VB???
the question is about generating a random number or how to get that random number between 1 and 6???
anyway take a look at randomize, random and to get a number between 1 and 6 just use:
INT(6 * RANDOM()) + 1
HTH
Gonzalo
=========================================================== Read this if you want to know how to get a correct reply for your question: http://www.catb.org/~esr/faqs/smart-questions.html ^^Took that from dparsons signature and he Took that from planoie's profile ===========================================================
|