Search found 3 matches

by luther
Tue Apr 02, 2013 5:17 pm
Forum: Games and Creations
Topic: Arcane Duel
Replies: 14
Views: 16628

Re: Arcane Duel

IMO, the background makes the player stats hard to read. You could either put a black box around the stats, or you could use a plainer background.
by luther
Thu Mar 21, 2013 11:42 pm
Forum: Support and Development
Topic: Generating random float variables
Replies: 7
Views: 7670

Re: Generating random float variables

shootingRate = math.random() + math.random(1, 5) With the first "math.random", i create a random float between 0 and 1 and with the second one, i add a random interger to the first amount and this way i get a random interger plus the first random float and this is a radom float, isn't it?...
by luther
Wed Aug 01, 2012 4:57 am
Forum: Support and Development
Topic: Generating random float variables
Replies: 7
Views: 7670

Re: Generating random float variables

shootingRate = math.random() + math.random(1.2, 2.5) I'm not exactly sure what you're trying to do with this. According to the Lua manual, math.random expects integer arguments, so the second call would only return 1 or 2. IMO, if you must round off, you should do it as the last step of the calcula...