View Single Post
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