fork(1) download
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. int main(void) {
  5. srand(time(NULL));
  6. for (int i = 0; i < 100; i++) printf("%i\n", 1001 + rand() % 4000);
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/39215/101
Success #stdin #stdout 0s 4384KB
stdin
Standard input is empty
stdout
2320
1110
1217
3822
3971
4206
4139
3027
1082
3830
4768
1601
1642
4993
2738
4144
3124
3638
2949
3033
2544
1041
2731
4363
1500
2506
2488
3974
4425
3561
3771
2097
4022
3987
4918
2993
3193
4056
1019
3626
3237
4786
4226
3878
1130
2315
3373
3253
1305
1674
1637
2848
2066
3719
2562
2565
1225
4049
1538
1001
2609
4660
2097
1631
3647
2014
3975
2191
1422
4345
4816
3658
4482
4393
2888
4611
2059
1260
3215
2363
1933
3851
4562
3351
2922
2123
4915
3498
1523
1805
3498
3132
1464
4595
4114
4462
1608
3440
2004
2029