fork(1) download
  1.  
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6. int a;
  7. a=rand()%501+500;
  8. printf("a=%d\n",a);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
a=507