Last active
August 29, 2015 14:07
-
-
Save codepainkiller/7c0a8c321090ee647f41 to your computer and use it in GitHub Desktop.
Números aleatorios - C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <time.h> | |
| #include<iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int num, c; | |
| srand(time(NULL)); | |
| for(c = 1; c <= 10; c++) | |
| { | |
| num = 1 + rand() % (11 - 1); | |
| cout << num<< " "; | |
| } | |
| return 0; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Bro Thank You :)