#!/usr/bin/env python3
import random
import time
import sys

colors = [32, 33, 34, 35, 36, 37]
chars = "01"

try:
    while True:
        for _ in range(random.randint(5, 20)):
            for __ in range(random.randint(1, 10)):
                color = random.choice(colors)
                sys.stdout.write(f"\033[{color}m{random.choice(chars)}\033[0m")
            sys.stdout.write(" ")
        sys.stdout.write("\n")
        time.sleep(0.05)
except KeyboardInterrupt:
    print("\n\033[0mДождь остановлен🌧️")