Tsld012

  • Use shoot() static methods to shoot random values, given a distribution

    • double v=RandFlat::shoot();
      double v=RandGauss::shoot();
  • Use static methods defined in HepRandom to set/get the initial seed to the current engine

    • long new_seed=1894304173;
      HepRandom::setTheSeed(new_seed);
      long init_seed = HepRandom::getTheSeed();

Previous slide Next slide Back to first slide View graphic version