VB.NET query
Results 1 to 3 of 3

Thread: VB.NET query

  1. #1
    Senior Member Zonewalker's Avatar
    Join Date
    Jul 2002
    Posts
    949

    VB.NET query

    ok I have a little problem and I'm hoping someone may be able to suggest something.

    I have a set of questions/answers in an array of 60. 1 of these questions is picked at random from the array and 4 corresponding 'answers' are also picked at random from the array and displayed as multiple choices. The 'right' answer to the displayed question is then placed at random into one of the choices (replacing one of the incorrect choices). Ok so far that works fine.

    during some testing I noted that some of the questions from the array get asked more than once, so what I want to do is to stop a question that has already been asked from being asked again. I'm not sure how to do that in VB.NET - anyone any suggestions?
    Quis Custodiet Ipsos Custodes

  2. #2
    Senior Member
    Join Date
    Dec 2003
    Location
    LA, CA
    Posts
    292
    make a randomly generated array of the questions, then sequentially move through the generated list of questions, when you reach the end of the list you could have it stop or reshuffle the list
    A mind full of questions has no room for answers

  3. #3
    Senior Member Zonewalker's Avatar
    Join Date
    Jul 2002
    Posts
    949
    thats.... not a bad idea... mmm <thinks>.....

    cheers - I'll come back to you in a bit
    Quis Custodiet Ipsos Custodes

Posting Permissions

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

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides