Computer Science, asked by aravindprathi, 6 months ago

write a program to print a random number from 0 to 1​

Answers

Answered by Anonymous
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 lakshitadas2009
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