[Date Prev][Date Next] [Thread Prev][Thread Next] [Thread Index] [Date Index] [Author Index]

*From*: "K.R. Foley" <kr cybsft com>*To*: fedora-infrastructure-list redhat com*Subject*: Re: download problem*Date*: Thu, 15 May 2008 12:22:34 -0500

susmit shannigrahi wrote:

we don't know this number (100) in the app... Hence it needs to be a probability chosen out of the 53 (which we do know).No, Wait. I can show if this is true for 100, this will be true for _any_ number. * As we are generating a random number within 100, the probability of each number being picked up is 1/100. * So the probability of getting a number within 85 is always 85/100. * Lets assume there are n requests to distribute. * Whatever be the value of n, the random number's probability of being in range <85 is 85/100. * So out of n requests, n*85/100 requests will always be routed to X irrespective of the value n. * Lets say n=10..So X gets 10*85/100 = 8.5 requests. * Lets say n=27 so X gets 27*85/100 = 22.95 requests. * If n=1, then the probability that X will get that particular requests is 85%. Correct?

Problem with this is that you never know n :) -- kr

**Follow-Ups**:**Re: download problem***From:*susmit shannigrahi

**References**:**download problem***From:*subhodip biswas

**Re: download problem***From:*Nigel Jones

**Re: download problem***From:*Matt Domsch

**Re: download problem***From:*Debarshi Ray

**Re: download problem***From:*Francois Petillon

**Re: download problem***From:*susmit shannigrahi

**Re: download problem***From:*Matt Domsch

**Re: download problem***From:*susmit shannigrahi