import math


def translate_random_number(number, start, stop):
    """
    Helper function to translate a random number 0 <= x <= 1 to integer
    between start <= x <= stop
    """
    return int(math.floor(number * (stop - start) + start))