random gen issues

Hello. Having issues with random generated integers.
Having structure:

ExamineOne.h -> main.cpp
If just roll code from main, i have different random generated numbers. Its ok
If i call function from header, i have random generated value only once...
Please advise

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <ExamineOne.h>

using namespace std;
using std::ios;

int main()
{
 //srand( time( 0 ) );
 examineOne ();
 examineOne ();
Please show ExamineOne.h.
Topic archived. No new replies allowed.