Seven-sided dice from five-sided dice: Difference between revisions

Content added Content deleted
Line 355:
function dice7()
x = dice5() * 5 + dice5() - 6
if x > 2120 then return dice7() end
return x%7 + 1
end</lang>