can someone help me with a small problem on a dice
game?
i have 2 dices or dice!?don't really know the plural and want to throw them
once i have thrown them i want to keap one as it is and
throw the second one again!
i have started with some code:
#include<iostream.h>
#include<stdlib.h>
#include<time.h>
int DICE1()
{
int nDice=rand()%6+1;
cout<<nDice;
return 0;}
int DICE2()
{
int nDice=rand()%6+1;
cout<<nDice;
return 0;}
main()
{
srand((unsigned)time(NULL));
DICE1();
DICE2();
return 0;}
i would apriciate your help!