Category: UtilitiesRandom Number Generator for Addon Developers 
Some random generated numbers


Please see my Random Combat Emotes addon to see this in actual use.
THIS IS NOT A USEFUL ADDON AS IS. IT MUST BE MODIFIED OR INTEGRATED INTO ANOTHER MOD.
It can be used to add random number generation, random delay and random repeat feature to another addon or modified to become useful based on an addon developer needs.
Use this to make random numbers for use in other addons.
I reliably tested up to MAX of 99999.
Since the numbers are based on BytesPerSecond, it is possible different computer on a different network could have less distributed numbers generated
This version is used by using the command:
/show_window Custom.RandomNumberGenerator.GenerateNumber in the chat window of the game. This is a basic rough working example of one use. I did a rough change from my Random Combat Emotes mod trigger; that is why the numbers show twice in the pictures. This can be used to generate numbers for other addons via <include> this xml into the addon.
Use the Excel worksheet to calculate the probability of each number in your range. The worksheet is lock so only the cells GREEN FILLED CELLS FOR MIN AND MAX Number for Range: A2 and B2
should be selectable
ONLY CHANGE THE GREEN FILLED CELLS FOR MIN AND MAX Number for Range. The rest will automatically change. The MIN MUST be less or equal to MAX. If it is equal, it is the only number that will be created.
UseNumRange MIN/MAX is for the number to use to determine random action from list of choices
DelayNumRange MIN/MAX is the range to the determine random number of times to delay between commands
RepeatNumRange MIN/MAX is the range to the determine random number of times to repeat a command.
Repeat number indicates the number of extra times the command will run beyond the first.
Repeat of 2 will run command 3 times, 1 as original and 2 times more for 2 repeats
This allows repeat 0 to still run the command once.

File Statistics 
User Rating: 

Downloads: 
2589 
Views: 
6479 
Favorites: 
0 
Uploaded By: 

Last Modified: 
03022021 09:37 PM by OkiGai 

 

There have been no comments posted to this file.
Be the first to add one.

All times are GMT 5. The time now is 04:46 PM.