Thread: random()
View Single Post
06-06-13, 01:22 AM   #3
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
Every number has the same possibility: 1/(number of values)
In your example (1-4), the chance of having the same number again is 25%, that's quite a lot.

If you want to 'block' a specific number for a given time, you'll need an extra OnUpdate script that handles a blacklist.
Or you fix it with a looping function that loops until the current random number is different to the previous.
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote