code: public void fillWithCheckState(CompoundButton view) {
          validateNotNullableView(view);
          validateIfIsACompoundButton(view);
  
          view.setChecked(new Random().nextBoolean());
      }
docs: Set a random check or uncheck state
  @param view