Write the output of the following code : import random print(int(random.random( )))

Question:
Write the output of the following code :
import random
print(int(random.random( )))

1.Any random number less than 1 and greater than 0

2.Always generate 0

3.Always generate 1

4.Shows Error

Posted Date:-2021-12-12 03:30:16


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!