Greetings,
I wasn't able to reproduce the error, but it appears as if the Random() function is somehow redefining your variable every time you call "Тасованная_колода" to display.
May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2