def lc_random(lower, upper, stepsize):
 nstep = int(((upper - lower) / (1.0 * stepsize)))
 choices = [(lower + (x * stepsize)) for x in range(nstep)]
 return random.choice(choices)

def lc_random ( lower , upper , stepsize ) : nstep = int ( ( ( upper - lower ) / ( 1.0 * stepsize ) ) ) choices = [ ( lower + ( x * stepsize ) ) for x in range ( nstep ) ] return random . choice ( choices )
like random .