fork download
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int i;
  9.  
  10. srand48(123);
  11.  
  12. for (i=0; i<10; i++)
  13. cout << drand48() << endl;
  14.  
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
0.279512
0.414529
0.925176
0.129524
0.124169
0.349821
0.625824
0.833907
0.69485
0.150055