Advertisement
sheredega

Task #5

Dec 10th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     srand(time(NULL));
  7.     cout << "Your dice: " << 1 + rand() % (6 - 1 + 1);
  8.     return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement