i want this code to do the action, which is generate a random number 1-6. i am totally lost here ive been looking at examples and this is what i have. i get the error function def is not allow here before "{" token.
void roll_hold( char remark)
{
if(remark=='r')
{
do
{
rand(0)% (7);
}while(remark== 'r');
}
if (remark=='h')
{
do
{
system("pause");
}while (remark=='h');
}
}