[ create a new paste ] login | about

Link: http://codepad.org/H4D8JU2a    [ raw code | output | fork ]

C++, pasted on Oct 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;
#include <time.h>
#include <stdlib.h>

int main (){

srand(time(NULL));
int x=rand()%10;
int y=rand()%10;
int a=rand()%10;
int b=rand()%10;
int sprite_pos[10][10];
int treasure_pos[10][10];


cout <<sprite_pos[x][y];


}


Output:
1
1074809980


Create a new paste based on this one


Comments: