Code example for ListIterator

Methods: hasNext, next

0
	@Override 
	public void onNextIteration() 
	{ 
		super.onNextIteration(); 
		 
		if (it.hasNext()) 
		{ 
			randomness = it.next(); 
			inverseRandomness = 1f - randomness; 
		} 
	} 
	 
	@Override 
	public final float bias(float value) 
	{ 
		return random.nextFloat() * randomness + inverseRandomness * value; 
	} 
}