Skip to content

Commit

Permalink
random -> rand
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Apr 11, 2012
1 parent 4ebf8c9 commit 331c39b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testmap.c
Expand Up @@ -12,13 +12,13 @@ test(struct map *m) {
int i;
int s = 0;
for (i=0;i<MAX*2;i++) {
int inc = random() % 3 + 1;
int inc = rand() % 3 + 1;
s += inc;
a[i] = s;
}
for (i=0;i<MAX * 2;i++) {
int x = random()%(MAX*2);
int y = random()%(MAX*2);
int x = rand()%(MAX*2);
int y = rand()%(MAX*2);
int temp = a[x];
a[x] = a[y];
a[y] = temp;
Expand Down

0 comments on commit 331c39b

Please sign in to comment.