iFun Engine API  1.0.0-b2821
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
random_generator.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2015 iFunFactory Inc. All Rights Reserved.
2 //
3 // This work is confidential and proprietary to iFunFactory Inc. and
4 // must not be used, disclosed, copied, or distributed without the prior
5 // consent of iFunFactory Inc.
6 
9 #ifndef INCLUDE_FUNAPI_UTILITY_RANDOM_GENERATOR_H_
10 #define INCLUDE_FUNAPI_UTILITY_RANDOM_GENERATOR_H_
11 
12 #include <funapi/types.h>
13 
14 
15 namespace fun {
16 
22  public:
29  static int64_t GenerateNumber(int64_t min, int64_t max);
30 
37  static string GenerateAlphanumeric(size_t min_length, size_t max_length);
38 
43  static Uuid GenerateUuid();
44 };
45 
46 } // namespace fun
47 
48 #endif // INCLUDE_FUNAPI_UTILITY_RANDOM_GENERATOR_H_
static string GenerateAlphanumeric(size_t min_length, size_t max_length)
Generates a random alphanumeric string, string length in range [min_length, max_length](max also incl...
static Uuid GenerateUuid()
Generates a random UUID, using boost::uuids::random_generator.
static int64_t GenerateNumber(int64_t min, int64_t max)
Generates a random number, in range of [min, max](max also inclusive).
Utility singleton component to generate random values of various types, including number...
Definition: random_generator.h:21