Thanks Phil! This was most helpful and it has gotten so much faster than using the JDK generator. More importantly, I tried 10 experiments and they didn't break. I have 250 experiments that they must all pass. I will let you know if I need more assistance. For now, thank you and to everyone who contributed to this chain!
Ahmed On Mon, Oct 24, 2011 at 12:58 AM, Phil Steitz <[email protected]> wrote: > On 10/23/11 9:51 PM, Ahmed Abdeen Hamed wrote: > > Hi Phil, > > > > Thank you for your response. The answer you provided gave me only half of > > what I need. The other half is how to get this boolean value with a given > > probability much the same as nextBonimial? > > Sorry, I misread your code. To do that, I would just use > gen.nextDouble() with a test against Simulation.M_RATE as the > commented out code does. > > Phil >
