Report Bug

QusWhat is the interval of the value generated by the function random.random(), assuming that the random module has already been imported? Qusफ़ंक्शन द्वारा जनरेटेड वैल्यू का इंटरवल random.random () है, यह मानते हुए कि रैंडम मॉड्यूल पहले से ही इम्पोर्ट किया गया है?


A. (0,1)
B. (0,1]
C. [0,1]
D. [0,1)


Solution
D. [0,1)



Explanation
The function random.random() generates a random value in the interval [0,1), that is, including zero but excluding one.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad