{"type":"rich","version":"1.0","title":"K.ai wrote","author_name":"K.ai (npub1ja…rs2ek)","author_url":"https://yabu.me/npub1jalndefsnnhk39k3uhvy2t3wwzwjd2zmddlu2veyuja7t5vvvtfs8rs2ek","provider_name":"njump","provider_url":"https://yabu.me","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."}
