/** * Returns a copy of the receiver; the copy will produce identical sequences. * After this call has returned, the copy and the receiver have equal but separate state. * * @return a copy of the receiver. */ public Object clone() { MersenneTwister clone = (MersenneTwister) super.clone(); clone.mt = (int[]) this.mt.clone(); return clone; } /**
/** * Returns a copy of the receiver; the copy will produce identical sequences. * After this call has returned, the copy and the receiver have equal but separate state. * * @return a copy of the receiver. */ public Object clone() { MersenneTwister clone = (MersenneTwister) super.clone(); clone.mt = (int[]) this.mt.clone(); return clone; } /**
/** * Returns a deep copy of the receiver; the copy will produce identical sequences. * After this call has returned, the copy and the receiver have equal but separate state. * * @return a copy of the receiver. */ public Object clone() { AbstractDistribution copy = (AbstractDistribution) super.clone(); if (this.randomGenerator != null) copy.randomGenerator = (RandomEngine) this.randomGenerator.clone(); return copy; } /**
/** * Returns a deep copy of the receiver. */ public Object clone() { RandomSampler copy = (RandomSampler) super.clone(); copy.my_RandomGenerator = (RandomEngine) this.my_RandomGenerator.clone(); return copy; } /**
/** * Returns a deep copy of the receiver. */ public Object clone() { RandomSampler copy = (RandomSampler) super.clone(); copy.my_RandomGenerator = (RandomEngine) this.my_RandomGenerator.clone(); return copy; } /**
/** * Returns a deep copy of the receiver; the copy will produce identical sequences. * After this call has returned, the copy and the receiver have equal but separate state. * * @return a copy of the receiver. */ public Object clone() { AbstractDistribution copy = (AbstractDistribution) super.clone(); if (this.randomGenerator != null) copy.randomGenerator = (RandomEngine) this.randomGenerator.clone(); return copy; } /**
/** * Returns a copy of the receiver; the copy will produce identical sequences. * After this call has returned, the copy and the receiver have equal but separate state. * * @return a copy of the receiver. */ public Object clone() { MersenneTwister clone = (MersenneTwister) super.clone(); clone.mt = (int[]) this.mt.clone(); return clone; } /**
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { AbstractDistribution copy = (AbstractDistribution) super.clone(); if (this.randomGenerator != null) copy.randomGenerator = (RandomEngine) this.randomGenerator.clone(); return copy; }
random = (RandomEngine) randomEngine.clone(); for (int j=0, i=size; --i>=0; j++) { System.out.print(" "+random.nextInt());
random = (RandomEngine) randomEngine.clone(); for (int j=0, i=size; --i>=0; j++) { System.out.print(" "+random.nextInt());
randomInstance(size,print,new Poisson(mean,(RandomEngine)gen.clone()));
randomInstance(size,print,new Poisson(mean,(RandomEngine)gen.clone()));