Root number generator

Could any one help me to have a code that print out random numbers between 0 to 1.
Urgent

{
  gRandom->SetSeed(0); // make it really "random"
  for (Int_t i = 0; i < 100; i++) std::cout << gRandom->Rndm() << std::endl;
  gRandom->Print(); // print its "name and title"
}

you are a great person thank you so much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.