function - How to output two different sets of random numbers in C++? -
so far, code: #include <iostream> #include <time.h> #include <stdio.h> #include <stdlib.h> using namespace std; int dealerroll(int dealerroll) { srand (time(null)); (int dealercount = 1; dealercount <= 3; dealercount++) { dealerroll = rand()% 6+1; cout << dealerroll << " "; } return dealerroll; } int playerroll(int playerroll) { srand (time(null)); (int playercount = 1; playercount <= 3; playercount++) { playerroll = rand()% 6+1; cout << playerroll << " "; } return playerroll; } int main() { int dealerroll; int playerroll; cout << "dealer's roll: " << endl; dealerroll(dealerroll); cout << endl << "your roll: " << endl; playerroll(playerroll); system ("pause"); return 0; } my problem dealer , player's random (dice) roll same. output example:...