#include <iostream>
#include <random>
using namespace std;

    float random(float a, float b)
    {
        static mt19937 gen(random_device{}()); 
        uniform_real_distribution<float> dis(a,b);
        return dis(gen);
    }


int main() 
{
    for(int i = 0; i < 10; i++) cout << random(1,2) << " ";
    cout << endl;
    for(int i = 0; i < 10; i++) cout << random(8,9) << " ";
}