I have a simple problem here but no clue how to fix this! I am trying to create a number generator but I only want it to pick a random number from 1-6. No zeros! This question was marked a dup but it shouldn't be because this is C++ NOT C:
srand(static_cast<unsigned int>(time(0)));
int dice = rand()%6;