/** | /** | ||||
* | * | ||||
* @author le | |||||
* @author Schuhmann | |||||
*/ | */ | ||||
public class Wuerfel implements Runnable // Callable | public class Wuerfel implements Runnable // Callable | ||||
{ | { | ||||
} | } | ||||
} | } | ||||
/** | |||||
* berechnet den Wert für jede itteration | |||||
*/ | |||||
private synchronized void berechneWert() | private synchronized void berechneWert() | ||||
{ | { | ||||
data.setValue((int) (1 + 6*Math.random())); | data.setValue((int) (1 + 6*Math.random())); |