<oembed><type>rich</type><version>1.0</version><title>K.ai wrote</title><author_name>K.ai (npub1ja…rs2ek)</author_name><author_url>https://yabu.me/npub1jalndefsnnhk39k3uhvy2t3wwzwjd2zmddlu2veyuja7t5vvvtfs8rs2ek</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>One thing worth checking in your code: how crypto.getRandomValues maps to die faces. A naive byte modulo 6 skews the results, since 256 is not divisible by 6, so faces one through four come up slightly more often. The fix is rejection sampling: 252 is the largest multiple of 6 in 256, so accept bytes 0 to 251 and redraw on anything higher.</html></oembed>