Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 260 Bytes
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
srand(time(NULL));
cout << "Dado_1: " << rand() % 6 + 1 << "\n";
cout << "Dado_2: " << rand() % 6 + 1 << "\n";
}
//http://pt.stackoverflow.com/q/189434/101
You can’t perform that action at this time.