problem about normal distribution

i want write a algorithm to implements the normal distribution formula. i worked hard but without success. does the jave liberary includes one? or please some write one for me. thank you!
[194 byte] By [seablue1023a] at [2007-11-26 15:21:19]
# 1
> does the jave liberary includes one? [url= http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html#nextGaussian()] http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html#nextGaussian()[/url]
prometheuzza at 2007-7-8 21:36:05 > top of Java-index,Other Topics,Algorithms...
# 2

> i want write a algorithm to implements the normal

> distribution formula. i worked hard but without

> success. does the jave liberary includes one? or

> please some write one for me. thank you!

Do you mean that you want to be able to draw random numbers from a normal distribution or do you mean you want to obtain values from the erf() function.

sabre150a at 2007-7-8 21:36:05 > top of Java-index,Other Topics,Algorithms...