def Ru_to_En(text):
from random import randint
ru_en = {"у": "y", "е": "e", "х": "x", "а": "a", "о": "o", "с": "c", "р":"p", "К":"K", "М":"M"}
return ''.join([ru_en[letter] if letter in ru_en and randint(0, 1) else ru_en[letter.lower()].upper() if letter.lower() and randint(0, 1) in ru_en else letter for letter in text])
print(Ru_to_En('Какой прекрасный день'))
Kaкoй прекраcный день