Originally posted by Vlatko
Code:
#include <iostream.h>
#include <stdlib.h>
#include <time.h>

int main(int argc, char* argv[])
{
	srand((unsigned)time( NULL ));
	cout<<(rand() % 6)+1<<endl;
	return 0;
}
How about that?