Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
QuestionAPI Help Pin
tayspen20-Mar-06 10:24
tayspen20-Mar-06 10:24 
AnswerRe: API Help Pin
Ahmad Mahmoud [candseeme]20-Mar-06 19:36
Ahmad Mahmoud [candseeme]20-Mar-06 19:36 
AnswerRe: API Help Pin
Ahmad Mahmoud [candseeme]20-Mar-06 19:49
Ahmad Mahmoud [candseeme]20-Mar-06 19:49 
GeneralRe: API Help Pin
tayspen21-Mar-06 8:55
tayspen21-Mar-06 8:55 
QuestionA statistical random function Pin
Madmaximus20-Mar-06 9:40
Madmaximus20-Mar-06 9:40 
AnswerRe: A statistical random function Pin
CWIZO20-Mar-06 9:42
CWIZO20-Mar-06 9:42 
GeneralRe: A statistical random function Pin
Madmaximus20-Mar-06 10:23
Madmaximus20-Mar-06 10:23 
GeneralRe: A statistical random function Pin
Dan Neely20-Mar-06 10:30
Dan Neely20-Mar-06 10:30 
CWIZO wrote:
I don't know what "mean" would be ... but have you looked at the Random class?


Mean is the average ((val1 + val2 + .. valN-1 + valN)/N ) value. Random has a designed mean of (MinVal+MaxVal)/2. To do what the OP wants where the mean could be located elsewhere would need a way to define the relative distribution. For the general implementation you'd need a parameter on the line of f(x) = <some function=""> where F(x) is defined over the range min..max and has a global maxima at mean. F(x) would scale the random value given a random value R. you'd return K defined that Integral(f(k), min value,k) = R. Integral f(x) would need scaled to normalize the return. For a specfic distribution you could try hardcoding it instead of taking a function as aparameter. You could try examing (large) 3rd party math libraries, but I suspect this is something that you'll need to write yourself.

All of this is off the top of my head, and I don't know how to do the implementation.
Questionadding xml schema location to serialized xml file Pin
Dan Neely20-Mar-06 9:32
Dan Neely20-Mar-06 9:32 
AnswerRe: adding xml schema location to serialized xml file Pin
Dan Neely20-Mar-06 10:01
Dan Neely20-Mar-06 10:01 
Questionperl and C# Pin
allenmpcx20-Mar-06 9:11
allenmpcx20-Mar-06 9:11 
AnswerRe: perl and C# Pin
Tom Larsen20-Mar-06 10:19
Tom Larsen20-Mar-06 10:19 
QuestionRe: perl and C# Pin
allenmpcx25-Mar-06 10:16
allenmpcx25-Mar-06 10:16 
QuestionIBMDA400 OLE DB Provider, data connection Pin
enasromios20-Mar-06 8:16
enasromios20-Mar-06 8:16 
QuestionLabels at runtime Pin
alexdg0420-Mar-06 8:03
alexdg0420-Mar-06 8:03 
AnswerRe: Labels at runtime Pin
CWIZO20-Mar-06 9:26
CWIZO20-Mar-06 9:26 
GeneralRe: Labels at runtime Pin
alexdg0420-Mar-06 9:29
alexdg0420-Mar-06 9:29 
AnswerRe: Labels at runtime Pin
CWIZO20-Mar-06 9:32
CWIZO20-Mar-06 9:32 
GeneralRe: Labels at runtime Pin
alexdg0420-Mar-06 9:37
alexdg0420-Mar-06 9:37 
GeneralRe: Labels at runtime Pin
CWIZO20-Mar-06 9:41
CWIZO20-Mar-06 9:41 
GeneralRe: Labels at runtime Pin
Dave Kreskowiak20-Mar-06 10:24
mveDave Kreskowiak20-Mar-06 10:24 
Questiondesing label like in desing time but in runtime Pin
alexdg0420-Mar-06 7:54
alexdg0420-Mar-06 7:54 
AnswerRe: desing label like in desing time but in runtime Pin
Baeltazor21-Feb-10 21:02
Baeltazor21-Feb-10 21:02 
AnswerRe: desing label like in desing time but in runtime Pin
Baeltazor21-Feb-10 21:03
Baeltazor21-Feb-10 21:03 
QuestionHow to get the dynanic part of an website ? Pin
K.A.L20-Mar-06 7:30
K.A.L20-Mar-06 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.