mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Add PseudoRandom in Lua API
This commit is contained in:
11
games/minimal/mods/test/init.lua
Normal file
11
games/minimal/mods/test/init.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
--
|
||||
-- Minimal Development Test
|
||||
-- Mod: test
|
||||
--
|
||||
|
||||
-- Try out PseudoRandom
|
||||
pseudo = PseudoRandom(13)
|
||||
assert(pseudo:next() == 22290)
|
||||
assert(pseudo:next() == 13854)
|
||||
|
||||
|
Reference in New Issue
Block a user