<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resample(self,N):
 """Returns a random sampling. """

        return rand.random(size=N)*(self.maxval - self.minval) + self.minval