Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
QuestionGetting the command line as a whole Pin
Brett Slaski20-Mar-06 12:57
Brett Slaski20-Mar-06 12:57 
AnswerRe: Getting the command line as a whole Pin
George L. Jackson20-Mar-06 15:17
George L. Jackson20-Mar-06 15:17 
GeneralRe: Getting the command line as a whole Pin
Brett Slaski21-Mar-06 1:43
Brett Slaski21-Mar-06 1:43 
Questiondrawing onto a WEbbrowsercontrol?? Pin
t_holm20-Mar-06 11:00
t_holm20-Mar-06 11:00 
AnswerRe: drawing onto a WEbbrowsercontrol?? Pin
thrakazog20-Mar-06 11:19
thrakazog20-Mar-06 11:19 
GeneralRe: drawing onto a WEbbrowsercontrol?? Pin
Judah Gabriel Himango20-Mar-06 12:39
sponsorJudah Gabriel Himango20-Mar-06 12:39 
QuestionNamespace issues Pin
thrakazog20-Mar-06 10:51
thrakazog20-Mar-06 10:51 
AnswerRe: Namespace issues Pin
mcljava20-Mar-06 12:37
mcljava20-Mar-06 12:37 
GeneralRe: Namespace issues Pin
thrakazog20-Mar-06 13:09
thrakazog20-Mar-06 13:09 
GeneralRe: Namespace issues Pin
darkelv21-Mar-06 0:51
darkelv21-Mar-06 0:51 
AnswerRe: Namespace issues Pin
Ahmad Mahmoud [candseeme]20-Mar-06 19:15
Ahmad Mahmoud [candseeme]20-Mar-06 19:15 
GeneralRe: Namespace issues Pin
thrakazog21-Mar-06 4:28
thrakazog21-Mar-06 4:28 
AnswerRe: Namespace issues Pin
Bob Stanneveld20-Mar-06 21:32
Bob Stanneveld20-Mar-06 21:32 
AnswerRe: Namespace issues Pin
Ahmad Mahmoud [candseeme]21-Mar-06 20:28
Ahmad Mahmoud [candseeme]21-Mar-06 20:28 
GeneralRe: Namespace issues Pin
Ahmad Mahmoud [candseeme]21-Mar-06 20:32
Ahmad Mahmoud [candseeme]21-Mar-06 20:32 
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 

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.