def METHOD_NAME(tracks: List[TrackSection]):
    for track in tracks:
        length = track.length
        for begin, end in _make_random_ranges(random.randint(0, 5), length):
            if random.randint(0, 1) == 0:
                track.add_curve(begin, end, _rand_range(2000, 10000))
        for begin, end in _make_random_ranges(random.randint(0, 5), length):
            if random.randint(0, 1) == 0:
                track.add_slope(begin, end, _rand_range(-20, 20))