#include #include void main(void) { const int SEED = 3; srand(SEED); int cpt = 0; int n = 0; while (n != 10000) { while ((rand() % 1000) != 0) { cpt++; } n++; } printf("%d tirages\n", cpt); }