import random


def gen_a_random_probability(self):
    """generate a random probability obey uniform distribution

    Returns:
        float: a random probability

    Examples:
        >>> s = String()
        >>> s.gen_a_random_probability()
        0.5
    """
    return random.uniform(0, 1)