Prev Previous Post   Next Post Next
Old 01-02-2011, 08:41 AM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Join Date: Nov 2009
Location: Germany
Posts: 136

Math is a standard library in LUA. You can use math.random(min, max) to generate pseudo random numbers. I'd recommend you to use math.randomseed(os.ostime()) once to alter the permutations of your random numbers before using math.random.
Zen X-Fi2 Apps: Notee-fi (notepad) | TicTacToe | Mahjongg - a free real-time strategy game.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 04:04 AM.