Pseudo Random Distribution Explained- By Flodian
DotaStrategy.com Forum Index > The Library > Pseudo Random Distribution Explained- By Flodian
Total Votes: 7
Helpful?
No ending time set.
Wa? 28% [ 2 ]
GOOD! Best thing since sliced bread! 71% [ 5 ]
Pseudo Random Distribution Explained- By Flodian
Posted on Fri Jan 09, 2009 4:53 amPseudo Random Distribution Explained- By Flodian
Much of this information came from Dota Wiki
http://www.dota-allstars.com/wiki/Pseudo_Random_Distribution
I made some readjustments and rephrased most of it so that it actually makes sense.
This system applies to the following skills
Critical Strike
• Naga Siren's Critical Strike
• Chaos Knight's Critical Strike
• Bounty Hunter's Jinada
o Based on Drunken Brawler
• Juggernaut's Blade Dance
• Phantom Assassin's Coup de grâce
• Skeleton King's Critical Strike
• Pandaren Brewmaster's Drunken Brawler
o Based on Drunken Brawler
• Crystalys
• Buriza-do Kyanon
Bash
• Troll Warlord's Bash
• Slardar's Bash
• Faceless Void's Time Lock
• Dwarven Sniper's Headshot
• Monkey King Bar
Pulverize
• Tidehunter's Anchor Smash
• Infernal's Flaming Fists
• Earth (Primal Split)'s Pulverize
Orb
• Maim
• Maelstrom
• Mjollnir
Hardened Skin
• Stout Shield
• Vanguard
Normally when we think of percentages of chanced attacks such as maim or critical strike all we know is the percentage, and that is all. For example Mortred’s ultimate has 15% changes to deal 4x damage. But what does that really mean? If it is truly 15% then there is a horrible glitch to the game.
Let’s think of this scenario: Mortred’s critical strike
If we just use the static 15% method, then that would basically mean every time you attack, the computer rolls out a 1~100 number and if that number is below 15 then you get a nice red number flashing behind her. This doesn’t sound too bad right? WRONG !
This could potentially mean that you could never ever cirt in the entire game, or in fact if you are really lucky and crit every time you attack.
Now, I know that will probably not happen but you do see the flaw in the logic there right?
Therefore the smart Blizzard techs developed the pseudo random distribution system.
The advantage of using this pseudo distribution is that you will never "not" have maim and never "always" maim.
The equation for this is distribution is really quite a simple linear equation
P(N) = C * N
P= Probability of occurring an attack modifier
N= Number of attacks, minimum of 1.
C= Is a constant that represents the initial probability of the percentage and how much it increases each time.
P is what we are trying to find so that isn’t need to be explained.
N is also quite simple, it is basically how many attacks you have ordered or received
C is the only one that is tricky.
Basic algebra shows this N value to be equal to 1 / C. The value of C in turn depends on the probability stated in the World Editor for that skill. This effectively means that if we had “infinite” number of attacks the number of attack modifiers divided by the total number of attacks should give us what our “ideal” C equals right?
P(infinite) / N (number of attacks) = C ideal
However we do not have “infinite” and so therefore not possible to get a perfectly exact number for C. Actually according to the Blizzard Techs to even calculate a rounded “C” ever time an attack is issued will eat up so much CPU that we will just be constantly lagging.
Therefore Blizzard has done the work for us. They took the easy way out, instead of calculating the actual value of C every time they simply imbedded a single constant multiple to all of the attack modifying skills.
5%
That’s right, 5% everything is rounded to the nearest 5%.
That is why all these Pseudo Random Distribution skills are rounded to the nearest 5th of a percent. What does that mean for us? Well if we just plug all the numbers in…
I skipped from 50~65 because well... there isn’t anything in between.
For those that like graphs here is a graphical interpretation of 10% crits
Why am I telling you all this? Well basically, the next time you use some hero with this distribution ability, maybe before you go into a battle hit a few creeps first based on the statistics shown above. This might cost you some time, but really if you were someone like Mortred 1 crit can make all the difference.

_________________
Last edited by Flodian on Sat Mar 14, 2009 10:04 pm; edited 1 time in total
Back to top
Getting rather techical aren't we Flo?
Nah this should be either stickied or in the library. As a former programmer, I understand the logic quite well, but this will probably be shrugged off by many. Good job tho

_________________
Join SotW #16: DESSERTS
Vote for SotW #15
Back to top
uh. great. kinda worthless imo -.- srry. i just lookit the number xD
_________________
Back to top
lukeiskul wrote:
uh. great. kinda worthless imo -.- srry. i just lookit the number xD
uh. great. kinda worthless imo -.- srry. i just lookit the number xD
Why is it worthless? o.0
_________________
Back to top
wow this is very interesting stuff flo! love the algebra and calculations involved! i'll try it the next time i play
_________________
New trailer! Check it out!
http://www.youtube.com/watch?v=7dyYEdGDwz4
Don't mess with da taijutsu masta!
Back to top
MeNoHaxor wrote:
wow this is very interesting stuff flo! love the algebra and calculations involved! i'll try it the next time i play
wow this is very interesting stuff flo! love the algebra and calculations involved! i'll try it the next time i play
uhh... What exactly will u try doing???

_________________
Join SotW #16: DESSERTS
Vote for SotW #15
Back to top
How would you know when's the right time to hit creeps before a fight?
_________________
RKO fan
Back to top
I think i don't understand it clearly..gonna read this again..
_________________
Soo Young of SNSD/Girls Generation Fan
Garena ID: Ekualo|^|
Back to top
ogre-magi wrote:
How would you know when's the right time to hit creeps before a fight?
How would you know when's the right time to hit creeps before a fight?
I mean you should hit creeps before a fight, and then go into the fight. ^^ As the percentage goes up by quite a lot. This probably won't apply to say naga.. as ever 3 hits she will get a crit, but for someone like Mortred... you get what I'm saying? That one crit can make all the difference, between death and a kill.
_________________
Back to top
@reiva- hit creeps b4 a fight.....lol
_________________
New trailer! Check it out!
http://www.youtube.com/watch?v=7dyYEdGDwz4
Don't mess with da taijutsu masta!
Back to top
-Se7eN- wrote:
I think i don't understand it clearly..gonna read this again..
I think i don't understand it clearly..gonna read this again..
Try reading the one on Dota Wiki... lol they loop around like 20 times before they actually get anything to you. XD
_________________
Back to top
Ohh thanks i get it now.. so whenever i play mortred, i'll farm while my team is defending. then go Rambo and get triple kills

_________________
RKO fan
Back to top
MeNoHaxor wrote:
@reiva- hit creeps b4 a fight.....lol
@reiva- hit creeps b4 a fight.....lol
OH! I thot u were really gna sit down and calculate all the possibilities during a game with mort or something. hahaha! Dat wud b so geeky!
But then again, the probability may increase but its still not certain, plus the game moves too fast to time these things.
_________________
Join SotW #16: DESSERTS
Vote for SotW #15
Back to top
ogre-magi wrote:
Ohh thanks i get it now.. so whenever i play mortred, i'll farm while my team is defending. then go Rambo and get triple kills
Ohh thanks i get it now.. so whenever i play mortred, i'll farm while my team is defending. then go Rambo and get triple kills
YES!!! In mathematical theory. ^^
_________________
Back to top
Another supporting thread to the upcoming "SECRET" Mortred guide..

_________________
Back to top
Reply to topic -
Quick Reply
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7 Next / Jump to Page
View previous topic View next topic
All times are GMT
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
DotaStrategy.com Forum Index . The Library
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7 Next / Jump to Page
View previous topic View next topic
All times are GMT
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
DotaStrategy.com Forum Index . The Library
Warcraft III: Reign of Chaos & Warcraft III: Frozen Throne are trademarks
and Blizzard Entertainment is a trademark or registered trademark of Blizzard
Entertainment in the U.S. and/or other countries. All Rights Reserved.
DotA Allstars is a trademark of Dota-Allstars.com All Rights Reserved.
DotA Strategy is a production of Alleba.com
Privacy Policy | Terms of Service - ©2010 DotaStrategy.com All Rights Reserved.
DotA Allstars is a trademark of Dota-Allstars.com All Rights Reserved.
DotA Strategy is a production of Alleba.com
Privacy Policy | Terms of Service - ©2010 DotaStrategy.com All Rights Reserved.












