Advertisement
MeehoweCK

Untitled

Nov 19th, 2020
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <cstdlib>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     srand(time(nullptr));
  10.  
  11.     for(int i = 0; i < 10; ++i)
  12.         cout << (rand() - 1) / 32766.0 << endl;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement