Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int myrand();
- int main (int argc, char *argv[])
- {
- unsigned int seed = -1;
- int i;
- srand(seed);
- for(i = 0; i < 10; i++) printf("%d\n", myrand());
- }
- int myrand()
- {
- int x = rand() % 20;
- return x;
- }
Add Comment
Please, Sign In to add comment