Re: unique numbers using srand( ) and rand( ) functions in C++

From: Leor Zolman (leor_at_bdsoft.com)
Date: 05/16/04


Date: Sun, 16 May 2004 10:52:17 -0400

On 16 May 2004 01:01:29 -0700, anthonyb_nc@hotmail.com (August1) wrote:

>This is a follow up to using these functions to produce lottery
>numbers to an outfile, then read the numbers from the file to the
>screen. Although other methods are certainly available.
>
>#include <iostream>
>#include <fstream>//for declaring objects of the ofstream and ifstream
>#include <time.h>
>#include <stdlib.h>

Forgot to mention: the two headers above are better off written as:

#include <ctime>
#include <cstdlib>

The forms you've used are deprecated.
        -leor

-- 
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix  
C++ users: download BD Software's free STL Error Message Decryptor at:
   www.bdsoft.com/tools/stlfilt.html