1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Add PseudoRandom in Lua API

This commit is contained in:
Perttu Ahola 2012-03-28 00:38:20 +03:00
parent 2c56a9f588
commit 04172e3dd0
3 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--
-- Minimal Development Test
-- Mod: test
--
-- Try out PseudoRandom
pseudo = PseudoRandom(13)
assert(pseudo:next() == 22290)
assert(pseudo:next() == 13854)