- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
5,105 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks WoT Mods
- Top Starcraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Videos
- Forums
LibTrueRandom-1.0
- 0 Likes
- World of Warcraft
- 19 Monthly Downloads
- Supports: 4.0.3a
- 783 Total Downloads
- Updated 1/14/2011 10:58:58 AM
- Created 9/10/2010 12:22:58 PM
- 0 Favorites
- Project Site
- Release Type: Release
- License: MIT License
- Newest File: v40000
About LibTrueRandom-1.0
LibTrueRandom-1.0 is a library that provides a way to asynchronously retrieve random values by making /roll requests.
Example code:
LibStub("LibTrueRandom-1.0").GetRandom(1, 1000, function(value) -- value will be a number >= 1 and <= 1000 here end)
Here's the use case for this library:
- You're in a guild or a raid and you want to randomly choose someone to get loot or for some other reason
- You can't use math.random, since other users in the group might think you are returning bad data thus weighting yourself or friends over them.
- Doing a /roll is safe and secure, since it's executed server-side and can't be weighted by client-side code.
- You print to the raid chat: "Rolling for phat lewt - 1: Monkeyman 2: Bananadude 3: Awesomeo"
- /roll 1 3
- Myguy rolled 2 (1-3) - executed server-side
- Bananadude is awarded the "phat lewt" programmatically (with the callback function provided)
- The three know that they had equal chances to get the item, knew what number they corresponded to, and knew who was the winner due to the public display of the /roll, so there is full transparency and hopefully no whining about "hax".
tag v40000
a82fedff88da8840ee7dbdfa3812bdd0190e7f8b
root <root@db06.curselive.local>
2011-01-14 16:58:09 +0000
Tagging as v40000
--------------------
unknown:
- Updating TOC to 40000
ckknight:
- Remove LibDeformat reference and put used globals into upvalues
- Initial commit
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| v40000 | Release | 4.0.3a | 632 | 1/14/2011 10:58:58 AM |
Top Downloads
-
- Bagnon
- Bags & Inventory
- 380,324 Monthly Downloads
-
- Deadly Boss Mods
- Combat and Boss Encounters
- 302,560 Monthly Downloads
-
- Recount
- Combat
- 301,016 Monthly Downloads
-
- SpellFlash
- PvP, Buffs & Debuffs, Quests & Leveling, Action Bars, and Combat
- 282,737 Monthly Downloads
-
- GatherMate2_Data
- Achievements
- 210,508 Monthly Downloads