3 Replies - 5626 Views - Last Post: 07 August 2009 - 05:00 AM Rate Topic: -----

#1 mgroses  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 31-July 09

random number generation in any distribution

Post icon  Posted 04 August 2009 - 04:56 AM

Hi everybody!

My thesis is about the material flow and I have tried to prepare a simulation tool in C#. I am too new in programing. For input of simulation, I need a random number generation tool. Before C#, I worked with MATLAB and in MATLAB the random number in any distribution is so easy. For example, if you need random number depend on normal distribution, you write only normrnd(mu,sigma).

However, in C# I can not find any random number generator (for all distribution). Do you have any idea about it?

Thanks for your help.

Is This A Good Question/Topic? 0
  • +

Replies To: random number generation in any distribution

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,957
  • Joined: 21-March 08

Re: random number generation in any distribution

Posted 04 August 2009 - 05:40 AM

what do you mean by "for all distibution"? sorry, never worked with MATLAB so I don't really know what that means.

As for random numbers, .Net has the Random class.

http://msdn.microsof...tem.random.aspx
Was This Post Helpful? 0
  • +
  • -

#3 mgroses  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 31-July 09

Re: random number generation in any distribution

Posted 05 August 2009 - 07:33 AM

View Posteclipsed4utoo, on 4 Aug, 2009 - 04:40 AM, said:

what do you mean by "for all distibution"? sorry, never worked with MATLAB so I don't really know what that means.

As for random numbers, .Net has the Random class.

http://msdn.microsof...tem.random.aspx


There are some distributions used in statistics, such as normal distribution, poisson distribution, and exponential distribution. This distributions are used also in simulation tools. Inputs from a source are sent depend on this distribution. I try to prepare a simulation tool for my thesis and I need random inputs but as I said the random number has to be depend on the distributions.
Was This Post Helpful? 0
  • +
  • -

#4 doucet.damon  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 25
  • Joined: 06-August 09

Re: random number generation in any distribution

Posted 07 August 2009 - 05:00 AM

View Postmgroses, on 5 Aug, 2009 - 06:33 AM, said:

View Posteclipsed4utoo, on 4 Aug, 2009 - 04:40 AM, said:

what do you mean by "for all distibution"? sorry, never worked with MATLAB so I don't really know what that means.

As for random numbers, .Net has the Random class.

http://msdn.microsof...tem.random.aspx


There are some distributions used in statistics, such as normal distribution, poisson distribution, and exponential distribution. This distributions are used also in simulation tools. Inputs from a source are sent depend on this distribution. I try to prepare a simulation tool for my thesis and I need random inputs but as I said the random number has to be depend on the distributions.


Why can't you write your own class using them, based on their definitions?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1