(self)
return offset
Sample a random time offset for the currently active motion.

    Returns:
      A random time offset between 0 and the duration of the currently active
      motion (in seconds).
Sample a random time offset for the currently active motion.
Sample a random time offset for the currently active motion .
def _sample_time_offset(self):
    """Sample a random time offset for the currently active motion.

    Returns:
      A random time offset between 0 and the duration of the currently active
      motion (in seconds).
    """
    motion = self.get_active_motion()
    dur = motion.get_duration()
    offset = self._rand_uniform(0, dur)

    return offset
def _sample_time_offset ( self ) : motion = self . get_active_motion ( ) dur = motion . get_duration ( ) offset = self . _rand_uniform ( 0 , dur ) return offset