On 10/22/11 8:15 PM, Ahmed Abdeen Hamed wrote: > Hello friends, > > I am using the following code in a program I am writing: > private static JDKRandomGenerator rg = new JDKRandomGenerator(); > private static RandomDataImpl randBinomial = new RandomDataImpl(rg); > > However, it is slowing down things very much. When I replace generator with > a java.util.Random object it works fine without the performance issues. Is > that expected with this library? Is there any work around? My programs are > very time consuming and I have been repeatedly running them. I really need > some tips if there is anything I can do to enhance the performance.
That depends on how you are using randBinomial above. Can you share the code that uses randBinomial and what you mean by "replace generator with a java.util.Random object?" It will also help to describe what exactly you are trying to accomplish with the code. Phil > > Thanks very much! > Ahmed > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
