Question 8 on the Quiz

On question 8, the answer the quiz has as correct says that Random.Range is inclusive of minimum and maximum, which directly contradicts the behavior proven while writing the sample application.

1 Like

It depends on the type of the values being passed to the method. As per the documentation if you pass floats in then the max is inclusive but if you pass an integers in then it’s exclusive of max.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms