write a program to print a random number from 0 to 1
Answers
Answered by
5
We can use srand () and rand () function to generate random numbers between 0 and 1. Note that we have to cast the output of rand () function to the decimal value either float or double.
Answered by
0
Answer:
answer
Explanation:
We can use srand () and rand () function to generate random numbers between 0 and 1. Note that we have to cast the output of rand () function to the decimal value either float or double.
Similar questions