// Generate random decimal number between 1 and 10,
// in intervals of 0.001 --- valid output could be
// 2.023 or 6.897 or 1.003
#include<iostream>
#include<cstdlib>
using namespace std;


int main()
{
 // Initialize random-number generator
 srand(time(0));


 // Generate random number
 float randNum=(rand()%9001)*.001+1;


 // Output random number
 cout << "My random number is: " << randNum << endl;


 return 0;
}