Random function in minesweeper game

What is the best way to place 10 mines in a 64 square grid on a random basis. This is the beginner minesweeper version. thus the grid is only 8x8 with 64 squares and we have it set up in a control array of 1 to 64.

Any ideas to resolve or any references can recomend.

Also looking for good website on visual basic game programming!!!

Thanks

Mpetersen

Comments

  • : What is the best way to place 10 mines in a 64 square grid on a random basis. This is the beginner minesweeper version. thus the grid is only 8x8 with 64 squares and we have it set up in a control array of 1 to 64.
    :
    : Any ideas to resolve or any references can recomend.
    :
    : Also looking for good website on visual basic game programming!!!
    :
    : Thanks
    :
    : Mpetersen
    :
    :
    i know i have a random number generator lying around some where (not sure where though) but if i find it i will post it. and for a good web site to learn vb try www.pscode.com/vb

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion