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

C#

 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse15-Jun-04 15:06
sachinkalse15-Jun-04 15:06 
GeneralRe: Adding .wmf to an RTF file... Pin
Heath Stewart16-Jun-04 3:09
protectorHeath Stewart16-Jun-04 3:09 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse16-Jun-04 14:45
sachinkalse16-Jun-04 14:45 
GeneralThree classes Pin
IamADotNetGuy14-Jun-04 12:08
IamADotNetGuy14-Jun-04 12:08 
GeneralRe: Three classes Pin
Daniel Turini14-Jun-04 12:26
Daniel Turini14-Jun-04 12:26 
GeneralRe: Three classes Pin
Steven Campbell14-Jun-04 18:42
Steven Campbell14-Jun-04 18:42 
GeneralProbability library Pin
machocr14-Jun-04 12:07
machocr14-Jun-04 12:07 
GeneralRe: Probability library Pin
Stefan Troschuetz14-Jun-04 21:42
Stefan Troschuetz14-Jun-04 21:42 
Hi there!

I had the same problem some months ago and couldn't find a complete C# library for this. So I've done this myself. In recent future, I want to write an article about that but have no time for this now.

Anyway, to get what you want, there are two ways.
Either you can look for some Probability Library which is written for C++ or so and use it to create a Class Library for .NET. Take a look at this article[^] here on CodeProject which presents a wrapper for the random generators of the Boost.Random library for C++. As the Boost library also contains numerous distributions you could write a wrapper for them on your own orientating on the work done with the random generators.

The other and as I think preferable way would be implementing the distributions completely on your own. This isn't very hard, as they only do some mathematical operations with the numbers provided by a random generator. To know which mathematical ops you have to perform take a look at existing implementations of distributions like the Boost Library. Also I found this nice site[^] which provides good information about some distribution including formulas how to create the random numbers.

Hope this helps!?

www.troschuetz.de
GeneralRe: Probability library Pin
machocr18-Jun-04 5:15
machocr18-Jun-04 5:15 
GeneralRe: Probability library Pin
Stefan Troschuetz18-Jun-04 5:24
Stefan Troschuetz18-Jun-04 5:24 
GeneralOT: Hello Pin
ChasP14-Jun-04 11:26
ChasP14-Jun-04 11:26 
GeneralAnti-alians Metafile Pin
Werdna14-Jun-04 11:04
Werdna14-Jun-04 11:04 
GeneralRe: Anti-alians Metafile Pin
Alexandre GRANVAUD15-Feb-10 1:59
Alexandre GRANVAUD15-Feb-10 1:59 
GeneralExact strings Pin
Chris Korzeniowski14-Jun-04 9:57
Chris Korzeniowski14-Jun-04 9:57 
GeneralRe: Exact strings Pin
Steven Campbell14-Jun-04 10:12
Steven Campbell14-Jun-04 10:12 
GeneralRe: Exact strings Pin
Chris Korzeniowski14-Jun-04 11:15
Chris Korzeniowski14-Jun-04 11:15 
GeneralRe: Exact strings Pin
Heath Stewart14-Jun-04 11:28
protectorHeath Stewart14-Jun-04 11:28 
GeneralWindows Service App Pin
japanreddy14-Jun-04 9:55
japanreddy14-Jun-04 9:55 
GeneralRe: Windows Service App Pin
Heath Stewart14-Jun-04 10:16
protectorHeath Stewart14-Jun-04 10:16 
Generalneed help on adding C++ project Pin
skinnyreptile14-Jun-04 9:37
skinnyreptile14-Jun-04 9:37 
GeneralRe: need help on adding C++ project Pin
japanreddy14-Jun-04 9:59
japanreddy14-Jun-04 9:59 
GeneralRe: need help on adding C++ project Pin
Heath Stewart14-Jun-04 10:12
protectorHeath Stewart14-Jun-04 10:12 
QuestionUXTHEME - Impossible? Pin
reflex@codeproject14-Jun-04 9:28
reflex@codeproject14-Jun-04 9:28 
GeneralAdd Reference Dialog control Pin
Jeremy Kimball14-Jun-04 8:56
Jeremy Kimball14-Jun-04 8:56 
GeneralRe: Add Reference Dialog control Pin
LongRange.Shooter14-Jun-04 9:15
LongRange.Shooter14-Jun-04 9:15 

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.