Results 1 to 15 of 15

Thread: Random Generator with case

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2017
    Posts
    10

    Random Generator with case

    I am new to VB. I am working on a project, Bingo of all games. I have been able to get the program to generate a random ball with shuffle method, so it has no duplicate balls. What I have not been able to do is fill the bingo card with no duplicates. This is standard bingo w/75 balls. B: 1to 15, I:16-30, N: 31-45, G: 46-60, O: 61-75. I have tried several different techniques however none so far have worked. I am able to get the card to fill with duplicates but that is not what I am trying to accomplish. I assume I need another Random number generator other than the one I used for drawing the bingo balls? Using Case and labels I am trying to sort the randomly generated numbers to fill the card when the New Game button is selected. My plan is to put the chosen numbers in an array so that I may search the array to determine if a player has achieved bingo. I have seen examples online but most use the old Rnd method and none so far that I have found do so without duplicates. Any help for this beginner would be greatly appreciated. I will attempt to attach my work in a zip file below but it may be too big to send so the code is also below.
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width