// Fig. 3.9: fig03_09.cpp
// Randomizing die-rolling program
#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>
int main()
{
unsigned seed;
cout << "Enter seed: ";
cin >> seed;
srand( seed );
for ( int i = 1; i <= 10; i++ ) {
cout << setw( 10 ) << 1 + rand() % 6;
if ( i % 5 == 0 )
cout << endl;
}
return 0;
}