The Library        Page 1 of 7        Goto page 1, 2, 3, 4, 5, 6, 7  Next / Jump to Page

Pseudo Random Distribution Explained- By Flodian

DotaStrategy.com Forum Index > The Library > Pseudo Random Distribution Explained- By Flodian

Reply to topic
 Goto page 1, 2, 3, 4, 5, 6, 7  Next / Jump to Page

Total Votes: 7

Helpful?

No ending time set.
Wa? 28% [ 2 ]
28%

GOOD! Best thing since sliced bread! 71% [ 5 ]
71%

Flodian


Warnings : 2 <<+-Grades-+>>
Beyond Godlike Posts: 7446 Joined: 06 Jul 2007 gold

Pseudo Random Distribution Explained- By Flodian

Posted: Fri Jan 09, 2009 4:53 am

Pseudo 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. Laughing Laughing Laughing
_________________




Last edited by Flodian on Sat Mar 14, 2009 10:04 pm; edited 1 time in total


Reply with quoteView user's profileSend private message


Back to top
 

reiva00


Graphics Moderator Posts: 1898 Joined: 22 May 2007 gold

Posted: Fri Jan 09, 2009 5:08 am

Getting rather techical aren't we Flo? Bleh!
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 Smile
_________________
SOTW #1
--Voting begins Nov 22--
Keep the entries coming!


Reply with quoteView user's profileSend private messageYahoo MessengerMSN MessengerICQ Number


Back to top
 

lukeiskul


Mega Kill Posts: 835 Joined: 28 Nov 2007 gold

Posted: Fri Jan 09, 2009 5:12 am

uh. great. kinda worthless imo -.- srry. i just lookit the number xD
_________________





Reply with quoteView user's profileSend private messageYahoo Messenger


Back to top
 

Flodian


Warnings : 2 <<+-Grades-+>>
Beyond Godlike Posts: 7446 Joined: 06 Jul 2007 gold

Posted: Fri Jan 09, 2009 5:14 am

lukeiskul wrote:
uh. great. kinda worthless imo -.- srry. i just lookit the number xD

Why is it worthless? o.0
_________________




Reply with quoteView user's profileSend private message


Back to top
 

MeNoHaxor


Monster Kill Posts: 460 Joined: 28 Apr 2008 gold

Posted: Fri Jan 09, 2009 5:14 am

wow this is very interesting stuff flo! love the algebra and calculations involved! i'll try it the next time i play
_________________
New video! Check it out!
http://www.youtube.com/watch?v=81B7rrPFNNw


Don't mess with da taijutsu masta!


Reply with quoteView user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger


Back to top
 

reiva00


Graphics Moderator Posts: 1898 Joined: 22 May 2007 gold

Posted: Fri Jan 09, 2009 5:16 am

MeNoHaxor wrote:
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??? Confused
_________________
SOTW #1
--Voting begins Nov 22--
Keep the entries coming!


Reply with quoteView user's profileSend private messageYahoo MessengerMSN MessengerICQ Number


Back to top
 

ogre-magi


Godlike Posts: 1387 Joined: 01 May 2008 gold

Posted: Fri Jan 09, 2009 5:16 am

How would you know when's the right time to hit creeps before a fight?
_________________
RKO fan




Reply with quoteView user's profileSend private message


Back to top
 

-Se7eN-


Warnings : 1 Mega Kill Posts: 953 Joined: 20 Jul 2008 gold

Posted: Fri Jan 09, 2009 5:17 am

I think i don't understand it clearly..gonna read this again..
_________________



Reply with quoteView user's profileSend private message


Back to top
 

Flodian


Warnings : 2 <<+-Grades-+>>
Beyond Godlike Posts: 7446 Joined: 06 Jul 2007 gold

Posted: Fri Jan 09, 2009 5:18 am

ogre-magi wrote:
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.
_________________




Reply with quoteView user's profileSend private message


Back to top
 

MeNoHaxor


Monster Kill Posts: 460 Joined: 28 Apr 2008 gold

Posted: Fri Jan 09, 2009 5:19 am

@reiva- hit creeps b4 a fight.....lol
_________________
New video! Check it out!
http://www.youtube.com/watch?v=81B7rrPFNNw


Don't mess with da taijutsu masta!


Reply with quoteView user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger


Back to top
 

Flodian


Warnings : 2 <<+-Grades-+>>
Beyond Godlike Posts: 7446 Joined: 06 Jul 2007 gold

Posted: Fri Jan 09, 2009 5:19 am

-Se7eN- wrote:
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
_________________




Reply with quoteView user's profileSend private message


Back to top
 

ogre-magi


Godlike Posts: 1387 Joined: 01 May 2008 gold

Posted: Fri Jan 09, 2009 5:21 am

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 Very Happy
_________________
RKO fan




Reply with quoteView user's profileSend private message


Back to top
 

reiva00


Graphics Moderator Posts: 1898 Joined: 22 May 2007 gold

Posted: Fri Jan 09, 2009 5:21 am

MeNoHaxor wrote:
@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.
_________________
SOTW #1
--Voting begins Nov 22--
Keep the entries coming!


Reply with quoteView user's profileSend private messageYahoo MessengerMSN MessengerICQ Number


Back to top
 

Flodian


Warnings : 2 <<+-Grades-+>>
Beyond Godlike Posts: 7446 Joined: 06 Jul 2007 gold

Posted: Fri Jan 09, 2009 5:23 am

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 Very Happy

YES!!! In mathematical theory. ^^
_________________




Reply with quoteView user's profileSend private message


Back to top
 

b_o_g_a_r_t


Mega Kill Posts: 850 Joined: 14 Apr 2008 gold

Posted: Fri Jan 09, 2009 5:23 am

Another supporting thread to the upcoming "SECRET" Mortred guide.. Laughing Laughing
_________________


Thanks to Flodian for this very awesome sig
Thanks to Parkguy for my former Purist Thunderwrath sig





Reply with quoteView user's profileSend private message


Back to top
 
 
Reply to topic
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

Display posts from previous:    

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


Jump to:  


DotaStrategy.com Forum Index    .    The Library
Subscribe to Feed