Re: Transfering calls - % values - secure to use txt file?



On May 26, 3:18 pm, Uwe Klein <uwe_klein_habertw...@xxxxxxxxxxx>
wrote:
Consolas wrote:
Hello! thank you for your reply!

The "problem" is i have fixed % numbers regarding each number. I need
to transfer 20% to number 1, 30% to number 2 (etc).

Furthermore, these % values can be changed in a php page, thus the
idea of use .txt files.

In the txt i would not only save how many calls were made throughout
the day but i woul use that number as well to make the math around the
% value - 20% of 1000 is 200..etc.

So, random numbers would not help me at all...

Ricardo

My guess is that ralf had the following in mind:

set prob [ expr { int(rand() * 99.999) } ]

set distribution {A 20 B 30 C40 D 10}

set top 0
foreach {chan percent} $distribution {
incr top $percent
if {$prob < $top} {
divert_call $call $chan
break
}
if {$top > 100}
error "more than a shure thing"
}

}

# your calls will be "evenly" distributed

uwe

Ah ok! I think i've understood what you said.

The main thing is, i need to know how many calls i had during the
day..lets say i've had 1000 calls and now i changed the % values from
lets say 50 50 to 90 10.

Therefore the next 9 calls would be delivered to the 90% and the 10th
call would be delivered to the 10%.

So i always need to know how many calls were made during the day...

i guess!
.



Relevant Pages

  • Re: Do I have pot odds to call here?
    ... years.  I have two master's degrees in quant fields.  But the kind of math ... what are the odds of making that flush and am I getting the right price to ... directly) I gave him probabilities to be on certain hands. ... If you want to do an EV calculation you need to put a probabilty distribution on ...
    (rec.gambling.poker)
  • pdf output does not show bold faced math fonts
    ... I've recently installed a fresh kubuntu distribution. ... output does not display the math symbold bold faced. ... However after I apt-got every font package related to latex that I am ... Please could somebody point me out which packages are most probably ...
    (comp.text.tex)
  • Re: Probability question
    ... If you didn't viscerally grasp math and stats ... no one would offer you the deal (given uncomfortable amounts) ... distributional analysis even if the distribution were fully ... real, eschew schizo pedantry. ...
    (rec.gambling.poker)
  • Re: Randomize three variables subject to sum always equal to 1
    ... We don't know if that is a problem or not as the original problem was ... >If I could do the math, I also might prove a suspicion that the result is ... it is not the same as the "divide by the sum" result given by Tom ... where the "RV's" do have the same distribution. ...
    (microsoft.public.excel.programming)
  • Re: need tutorial or lecture notes on Tempered distribution, generalized functions and Fourier Trans
    ... > I am in a process of revisiting Fourier Transform via way of Tempered ... > Distribution and Generalized Functions. ... > into math but not too math such as math graduate. ... > Generalized Functions, and with good understandable math as a bridge from ...
    (sci.math)