Thread: random()
View Single Post
06-06-13, 03:00 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
If you want a number to only swap every so and then you can work with microtime.
Just cut of as many numbers on the end as you like.

Basically you can cout out the "seconds" counter ranging from 0..9. If you need some fine tunings you can still do operations on that one.

72345344412222
72345344412222

I used sth similar on a picture swapper that changes pictures with a preset order based on a number calculated by microtime cut-off.

There are tons of other ways though.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 06-06-13 at 03:05 AM.
  Reply With Quote