CS1112 --> Exams --> Prelim 1

 

Review Sessions Note on syntax: both rand and rand(1) do the same thing: give a random value in the range of 0 to 1, excluding 0 and excluding 1.