programming-examples/c++/Others/TestRandom.cpp - Test program for random number class.cpp

16 lines
332 B
C++
Raw Normal View History

2019-11-15 12:59:38 +01:00
TestRandom.cpp - Test program for random number class
#include "Random.h"
#include <iostream.h>
// Test program
int main( )
{
Random r( 1 );
for( int i = 0; i < 20; i++ )
cout << r.randomInt( ) << endl;
return 0;
}