diff options
author | zedarider <ymherklotz@gmail.com> | 2016-02-24 01:12:05 +0000 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2016-02-24 01:12:05 +0000 |
commit | 08fdf56e21bcd9fe77508e98c9f65b9847d538ac (patch) | |
tree | 0fa4a49c7e796f3bff3729204249087e13e1012e /2048 Game/random.cpp | |
download | imperial_2015-08fdf56e21bcd9fe77508e98c9f65b9847d538ac.tar.gz imperial_2015-08fdf56e21bcd9fe77508e98c9f65b9847d538ac.zip |
final changes to game done
Diffstat (limited to '2048 Game/random.cpp')
-rw-r--r-- | 2048 Game/random.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2048 Game/random.cpp b/2048 Game/random.cpp new file mode 100644 index 0000000..1587cb0 --- /dev/null +++ b/2048 Game/random.cpp @@ -0,0 +1,24 @@ +/* +* @Author: yannherklotz +* @Date: 2016-02-01 17:47:47 +* @Last Modified by: yannherklotz +* @Last Modified time: 2016-02-04 15:08:05 +*/ + +#include <iostream> +#include <cstdlib> +#include <ctime> + +using namespace std; + +int main(){ + srand(time(NULL)); + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + cout << rand() % 1000 << endl; + return 0; +}
\ No newline at end of file |