fork(12) download
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. int main(void) {
  5. int i;
  6. srand(time(NULL));
  7. for (i = 0; i < 100; i++) {
  8. printf("%i\n", 1001 + rand() % 4000);
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
1797
3789
2589
4928
4166
4688
3533
4561
4880
4468
1790
3837
1952
4419
2331
1773
1873
3015
4788
2815
2223
2902
4281
3620
3181
2879
2652
2916
1166
1735
3573
1962
4876
1161
2242
4041
4848
4774
3601
4727
4242
4742
3916
1545
4160
1246
2317
1385
3260
2104
3199
4835
4357
2479
3454
2538
4358
1457
4453
4875
2544
3025
1837
2419
3538
3078
1811
3385
3203
4411
3464
2444
4504
2379
3340
4015
2976
4657
4399
1588
2112
2597
1422
1469
4076
4227
3006
3785
4683
2810
3659
2226
1187
4847
3996
3724
2924
4806
2460
1127