public void randomBark() { if (Math.random() >= 0.9975 && !DogService.INSTANCE.getBarking()) { DogService.INSTANCE.setBarking(true); } }