aboutsummaryrefslogtreecommitdiffstats
path: root/2048 Game/random.cpp
diff options
context:
space:
mode:
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