lkjoel/minetest-nether — pull request #1 by redcrab (2012-07-06 11:07:44+00:00)
Title: rewrite in teleport_player, math.random usage

rewrite and simplify nether:teleport_player coin coin2 math.random usage. ref: http://pgl.yoyo.org/luai/i/math.random.
No need to have math.floor
with 0 et 1 , you can have -1 and 1 if you multiply by 2 and remove 1 x = 0 or 1 , y = (x * 2 - 1) -> y= -1 or 1