Basic skeleton for the latest TD1 exercice
[TD_IML.git] / TD1 / part_three / balle / balle.c
CommitLineData
ed423898
JB
1#include <sys/types.h>
2#include <sys/wait.h>
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <unistd.h>
8#include <time.h>
9
10int main() {
11
12 srand(time(NULL));
13 int randValue = rand() % 5 + 1;
14
15 printf("[%d] Je suis la balle et je vole\n", getpid());
16
17 sleep(randValue);
18
19 return EXIT_SUCCESS;
20}