code: public Node mutate(Random rng, Probability mutationProbability, TreeFactory treeFactory)
      {
          if (mutationProbability.nextEvent(rng))
          {
              return treeFactory.generateRandomCandidate(rng);
          }
          else
          {
              // Node is unchanged.
              return this;
          }
      }
docs: {@inheritDoc}