random_heat_flux_generator.py
def _T_amb_rand_data(size: int, start: float = 21,
                     diff_value: float = 0.05) -> list:
    """
    Returning pseudorandom distribution of ambient temperature
    """

    # Creating a random walk of either adding or subtracting some value
    arr = [start]
    for index in range(1, size):
        new_val = arr[index-1] + random.choice([-diff_value, diff_value])
        arr.append(round(new_val, 2))

    # print(arr)
    return arr

    Returning pseudorandom distribution of ambient temperature
    
Returning pseudorandom distribution of ambient temperature
Returning pseudorandom distribution of ambient temperature
def _T_amb_rand_data(size: int, start: float = 21,
                     diff_value: float = 0.05) -> list:
    arr = [start]
    for index in range(1, size):
        new_val = arr[index-1] + random.choice([-diff_value, diff_value])
        arr.append(round(new_val, 2))
    return arr
def _T_amb_rand_data ( size : int , start : float = 21 , diff_value : float = 0.05 ) -> list : arr = [ start ] for index in range ( 1 , size ) : new_val = arr [ index - 1 ] + random . choice ( [ - diff_value , diff_value ] ) arr . append ( round ( new_val , 2 ) ) return arr
Returning pseudorandom distribution of ambient temperature
Returning pseudorandom distribution of ambient temperature
"""
    Returning pseudorandom distribution of ambient temperature
    """ # Creating a random walk of either adding or subtracting some value # print(arr)
size
int
start
float
diff_value
float