import random


def get_random_span(text):
    """Method to take a string and generate a variable span based off
    the total length of the string

    Args:
        text (str): Sequence to text to create a span from

    Returns:
        [list]: The left and right index of the span on a character level
    """
    string_length = len(text)
    random_span_1 = int(random.random()*string_length)
    random_span_2 = int(random.random()*string_length)
    while random_span_1 == random_span_2:
        random_span_2 = int(random.random()*string_length)
    span = [random_span_1, random_span_2]
    span.sort()
    return span