Topic: Rand_max


Author: clamage@Eng.sun.com (Steve Clamage)
Date: 1998/05/06
Raw View
In article 3CFA8A96@notes.pw.com, Scott Michie <Scott_Michie@notes.pw.com> writes:
>
>Where and how is a value assigned to rand_max?

RAND_MAX is a macro defined in standard header <stdlib.h> (and
in <cstdlib> if your compiler supports the new headers).

To use any of the facilities of the standard library in C++,
you must include the associated header.

If you mean specifically rand_max, all lower case, that isn't a
standard identifier, and you'd have to ask elsewhere.

---
Steve Clamage, stephen.clamage@sun.com



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: Scott Michie <Scott_Michie@notes.pw.com>
Date: 1998/05/06
Raw View
Where and how is a value assigned to rand_max?


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]