<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sampleLocation(self):
 """ Simple method to sample uniformly from a cylinder. """

    areaRatio = self.radius / (self.radius + self.height)
    if random.random() < areaRatio:
      return self._sampleLocationOnDisc()
    else:
      return self._sampleLocationOnSide()