Saved Bookmarks
| 1. |
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?(a) (0,1)(b) (0,1](c) [0,1](d) [0,1) |
|
Answer» Correct choice is (d) [0,1) To explain: The function random.random() generates a random value in the interval [0,1), that is, including zero but excluding one. |
|