|
||||
Warning, file /include/root/TRandom2.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // @(#)root/mathcore:$Id$ 0002 // Author: Rene Brun 04/03/99 0003 0004 /************************************************************************* 0005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 0006 * All rights reserved. * 0007 * * 0008 * For the licensing terms see $ROOTSYS/LICENSE. * 0009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0010 *************************************************************************/ 0011 0012 #ifndef ROOT_TRandom2 0013 #define ROOT_TRandom2 0014 0015 0016 0017 ////////////////////////////////////////////////////////////////////////// 0018 // // 0019 // TRandom2 // 0020 // // 0021 // random number generator class (periodicity > 10**26) // 0022 // // 0023 ////////////////////////////////////////////////////////////////////////// 0024 0025 #include "TRandom.h" 0026 0027 class TRandom2 : public TRandom { 0028 0029 protected: 0030 UInt_t fSeed1; //Random number generator seed 1 0031 UInt_t fSeed2; //Random number generator seed 2 0032 0033 public: 0034 TRandom2(UInt_t seed=1); 0035 ~TRandom2() override; 0036 Double_t Rndm( ) override; 0037 using TRandom::Rndm; 0038 void RndmArray(Int_t n, Float_t *array) override; 0039 void RndmArray(Int_t n, Double_t *array) override; 0040 void SetSeed(ULong_t seed=0) override; 0041 UInt_t GetSeed() const override; 0042 0043 ClassDefOverride(TRandom2, 1) // Random number generator with periodicity of 10**26 0044 }; 0045 0046 R__EXTERN TRandom *gRandom; 0047 0048 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |