Skip to content

Instantly share code, notes, and snippets.

@4513ECHO
Created September 15, 2021 22:44
Show Gist options
  • Save 4513ECHO/f96413f2608038bda988a45c621efaa9 to your computer and use it in GitHub Desktop.
Save 4513ECHO/f96413f2608038bda988a45c621efaa9 to your computer and use it in GitHub Desktop.
[n for n in [{}] if not(n.update({"r":__import__("random")}) or n.update({"d":("●","●","●","▲","▲","■")}) or n.update({"c":1000}) or [print(f"{x}: {y:.3%}") for x, y in {x:([sorted([n["r"].choice(n["d"]) for _ in [0,0]]) for _ in range(n["c"])].count(sorted([x[0],x[1]]))/n["c"]) for x in {x+y for x in n["d"] for y in n["d"]}}.items()]) or None]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment