Thread: Random Numbers

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    30

    Random Numbers

    I have a problem with em. They are random of the numbers i wanted but they dont change every time.......

  2. #2
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    anywhere before you use the 'rand' use this function: randomize();
    the best things in life are simple.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    30
    Would that include num1?? cuz for me num1 = one of my rands..
    HOw are ya?

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    30
    Whats the identifired for randomize();
    HOw are ya?

  5. #5
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    use it before num1
    the best things in life are simple.

  6. #6
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    522
    Well what do you know, there's an example in the FAQ
    All spelling mistakes, syntatical errors and stupid comments are intentional.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. Doubts regarding random numbers generation
    By girish1026 in forum C Programming
    Replies: 9
    Last Post: 12-31-2008, 10:47 PM
  3. random numbers limit
    By HAssan in forum C Programming
    Replies: 9
    Last Post: 12-06-2005, 07:51 PM
  4. Generate random numbers in Lucky7 project using C#
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 04-11-2003, 11:03 PM
  5. random numbers
    By lil_plukyduck in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2003, 10:14 PM