From 04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 28 Mar 2012 00:38:20 +0300 Subject: Add PseudoRandom in Lua API --- games/minimal/mods/test/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/minimal/mods/test/init.lua (limited to 'games') diff --git a/games/minimal/mods/test/init.lua b/games/minimal/mods/test/init.lua new file mode 100644 index 000000000..051b47906 --- /dev/null +++ b/games/minimal/mods/test/init.lua @@ -0,0 +1,11 @@ +-- +-- Minimal Development Test +-- Mod: test +-- + +-- Try out PseudoRandom +pseudo = PseudoRandom(13) +assert(pseudo:next() == 22290) +assert(pseudo:next() == 13854) + + -- cgit v1.2.3