1 2 3 4 5 6 7 8 9
#include <cstdlib> #include <iostream> using namespace std; int main() { cout << (float) rand() / RAND_MAX; }
1
0.840188