To give credit before I forget: I’ve replaced the dice-throwing with a triangle method I found from Shurebis.