1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

URGENT!!How to make a random without repetition?

Discussion in 'C' started by askmewhy25, Mar 23, 2010.

  1. askmewhy25

    askmewhy25 New Member

    Joined:
    Jan 24, 2010
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    URGENT!!How to make a random without repetition? using C
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    How would you do it with a dice?
    Let's try. 1 4 2 1 -oops, had a 1 already. Now what? And how did we know?
     
  3. davidk

    davidk New Member

    Joined:
    Mar 25, 2010
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    0
    Home Page:
    Do you need to generate random numbers? Consider some C functions like rand()
     

Share This Page