Skip to content

Commit

Permalink
Video retake
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Nov 6, 2014
1 parent e8a3477 commit cfc9a97
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions game/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON A

#include "mtrand.h"

#define srand mtsrand
#define rand mtrand

int main(int argc, char* argv[])
{
mtsrand(1);
srand(42);

for (int i = 0; i < 100; i++)
{
size_t r = mtrand();
size_t r2 = (r%100) + 1;
size_t r = rand();
size_t r2 = r%100+1;
printf("%.2d ", r2);
}

Expand Down

0 comments on commit cfc9a97

Please sign in to comment.