Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Random Number Generator: No Similar numbers

    Hey.

    I want to create 10 random numbers, but none of them can be the same.

    Pretty much like a cross lotto system where it chooses 10 random numbers from a pool of 1-40, so therefore none are the same.

    I'm not to sure how to code my code to check if the numbers are the same, and then reissue a number for that array etc.


    Any help. thanks

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    This explains the logic:
    http://forums.asp.net/thread/1461944.aspx

    Good luck;

  • #3
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here, finally got it working.
    Last edited by Lococard; 02-22-2007 at 12:04 AM.


  •  

    Posting Permissions

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