Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/24/14, 05:40 PM   #1
zireko
 
zireko's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 63
Anyone Know the Lua for Random Numbers in ESO????

I have my code working pretty good the only line of code I can't find or figure out is how to get a random number to pop in.

I'm creating just a simple dice roller for my first addon. The math.random() doesn't seem to work so I even messed around with another random code but couldn't seem to plug it in either.

Lua Code:
  1. local Roll = 0
  2.  
  3. function LootDiceRoll()
  4.     math.random(100)
  5. end
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Anyone Know the Lua for Random Numbers in ESO????


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

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