import random


def generate_state(lenght,symbol0,symbol1):
    """
This function randomly generates the initial state.


The function requires as input the following PARAMETERS:
lenght: This parameter is the lenght of the generated string, the expected type is integer; 
symbol0: This parameter corresponds to the low state, the expected type is string;
symbol1: This parameter corresponds to the high state, the expected type is string.

The function RETURNS a string made by the two symbols. The number of symbols in the string is equal to the value of the parameter lenght.

EXAMPLE:
generate_states(3,'0','1') returns a random string choosen between following: "000", "001" , "010" , "100" , "011", "101", "110", "111".

    """ 
    return ''.join(random.choices(symbol0+symbol1, k=lenght))