LeviLamina
Loading...
Searching...
No Matches
Random.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/IRandom.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/platform/threading/ThreadLocalObject.h"
9#include "mc/util/ThreadOwner.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Core { class Random; }
14// clang-format on
15
17public:
18 // Random inner types define
19 using result_type = uint;
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 2536, ::Bedrock::Application::ThreadOwner<::Core::Random>> mRandom;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 0
31 virtual ~Random() /*override*/;
32
33 // vIndex: 4
34 virtual bool nextBoolean() /*override*/;
35
36 // vIndex: 5
37 virtual float nextFloat() /*override*/;
38
39 // vIndex: 6
40 virtual double nextDouble() /*override*/;
41
42 // vIndex: 2
43 virtual int nextInt() /*override*/;
44
45 // vIndex: 1
46 virtual int nextInt(int n) /*override*/;
47
48 // vIndex: 3
49 virtual int64 nextLong() /*override*/;
50
51 // vIndex: 7
52 virtual double nextGaussianDouble() /*override*/;
53
54 // vIndex: 8
55 virtual void consumeCount(uint count) /*override*/;
56
57 // vIndex: 9
58 virtual ::std::unique_ptr<::IRandom> fork() /*override*/;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI Random();
65
66 MCAPI Random(uint seed, bool onlyUsedDeterministically);
67
68 MCAPI float nextFloat(float min, float max);
69
70 MCAPI int nextInt(int min, int max);
71
72 MCAPI int nextIntInclusive(int min, int max);
73
74 MCAPI void setSeed(uint seed);
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::Random& getThreadLocal();
81 // NOLINTEND
82
83public:
84 // static variables
85 // NOLINTBEGIN
86 MCAPI static ::Bedrock::Threading::ThreadLocalObject<::Random>& mThreadLocalRandom();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor();
93
94 MCAPI void* $ctor(uint seed, bool onlyUsedDeterministically);
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCAPI void $dtor();
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI bool $nextBoolean();
107
108 MCAPI float $nextFloat();
109
110 MCAPI double $nextDouble();
111
112 MCAPI int $nextInt();
113
114 MCAPI int $nextInt(int n);
115
116 MCAPI int64 $nextLong();
117
118 MCAPI double $nextGaussianDouble();
119
120 MCAPI void $consumeCount(uint count);
121
122 MCAPI ::std::unique_ptr<::IRandom> $fork();
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCAPI static void** $vftableForEnableNonOwnerReferences();
129
130 MCAPI static void** $vftableForIRandom();
131 // NOLINTEND
132};
Definition EnableNonOwnerReferences.h:7
Definition IRandom.h:10
Definition Random.h:16