The random button be inactive if gen != 0.