aboutsummaryrefslogtreecommitdiffstats
path: root/2048 Game/random.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-02-24 01:12:05 +0000
committerzedarider <ymherklotz@gmail.com>2016-02-24 01:12:05 +0000
commit08fdf56e21bcd9fe77508e98c9f65b9847d538ac (patch)
tree0fa4a49c7e796f3bff3729204249087e13e1012e /2048 Game/random.cpp
downloadimperial_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.cpp24
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