import java.util.Random; public class Punkt extends Button { static Random r = new Random (); Punkt () { int z = r.nextInt () % 2; set (z > 0); } }