27282930313233
private final MersenneTwister mt; private double ratio = 0.5; public RandomBrush(Area shape) { super(shape); mt = new MersenneTwister(System.currentTimeMillis()); }
32333435363738394041
mt = new MersenneTwister(System.currentTimeMillis()); } public RandomBrush(AbstractBrush sb) { super(sb); mt = new MersenneTwister(System.currentTimeMillis()); if (sb instanceof RandomBrush) { ratio = ((RandomBrush)sb).ratio; } }
29303132333435
34353637383940414243