Main Page
Related Pages
Modules
Namespaces
Classes
Files
Namespace List
Namespace Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Functions
SeedCreator Namespace Reference
Functions
unsigned int
CreateRandomNumberSeed
()
Function Documentation
unsigned int SeedCreator::CreateRandomNumberSeed
(
)
inline
Definition at line
20
of file
SeedCreator.h
.
21
{
22
23
// the maximum allowed seed for the art::RandomNumberGenerator
24
// is 900000000. Use TRandom3 to get the seed value in that range.
25
// Instantiating TRandom3 with a 0 means that its seed is set based
26
// on the TUUID and should always be random, even for jobs running on the
27
// same machine
28
TRandom3 rand(0);
29
return
rand.Integer(900000000);
30
}
Generated by
1.8.5