import random


def get_random_start_end(len_genotype):
    """gets a random start and end type for genotype
    used to get start and end times for fragments, used in mutations
    
    Args:
        len_genotype (int): length of genotype list
    
    Returns:
        (int, int): tuple of two integers representing randomly generated (start_index, end_index)
    """
    end_index = random.randint(0, len_genotype-1)
    start_index = random.randint(0, len_genotype-1)
    if start_index > end_index:
        temp = end_index
        end_index = start_index
        random_end_index = temp

    return (start_index, end_index)