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

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
http://www.starfare.eu/ - 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 06:02 PM.