All pastes #809743 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-09 05:44 UTC
rendered paste body
package model;

import java.util.Random;

public class AngryFink extends AbstractFink {

//	private String id;
//	private int maxAge;
//	private int age;
//	private int energy;
	private Random random;
	//private boolean lastPruned;
	
	public AngryFink( String id, int maxAge, Random random )
	{

		super ( id,  maxAge,  random );
		//super(id);
		//this.age = 0;
		//this.energy = 20;
		this.random = random;
	}
	
	public void prune(Fink other)
	{
		this.lastPruned = random.nextInt( 2 ) % 2 == 0; 
	}

}