iFun Engine API  1.0.0-b6053
Great Technology for Great Games
random_generator.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2020 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 
21 class FUNAPI_DLL_VISIBILITY RandomGenerator {
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_
Definition: json.h:18
Utility singleton component to generate random values of various types, including number...
Definition: random_generator.h:21
boost::uuids::uuid Uuid
UUID type used throughout Funapi.
Definition: types.h:56