random

This is a discussion on random within the C++ Programming forums, part of the General Programming Boards category; what header file do I need to use the random function for variables?...

  1. #1
    Registered User Octorok101's Avatar
    Join Date
    May 2002
    Posts
    22

    random

    what header file do I need to use the random function for variables?

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    i think it's math.h
    if that doesn't work, try stdlib.h

  3. #3
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    94
    If I recall correctly, it was stdlib.h

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. random to int?
    By psyadam in forum C# Programming
    Replies: 7
    Last Post: 07-22-2008, 09:09 PM
  2. Lesson #3 - Math
    By oval in forum C# Programming
    Replies: 2
    Last Post: 04-27-2006, 09:16 AM
  3. Another brain block... Random Numbers
    By DanFraser in forum C# Programming
    Replies: 2
    Last Post: 01-23-2005, 05:51 PM
  4. How do I restart a random number sequence.
    By jeffski in forum C Programming
    Replies: 6
    Last Post: 05-29-2003, 03:40 PM
  5. Best way to generate a random double?
    By The V. in forum C Programming
    Replies: 3
    Last Post: 10-16-2001, 05:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21