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/math/Random.h"
8#include "mc/util/ThreadOwner.h"
9
10class Random : public ::IRandom {
11public:
12 // Random inner types define
13 using result_type = uint;
14
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 2552, ::Bedrock::Application::ThreadOwner<::Core::Random, 0>> mRandom;
19 // NOLINTEND
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~Random() /*override*/;
25
26 virtual bool nextBoolean() /*override*/;
27
28 virtual float nextFloat() /*override*/;
29
30 virtual double nextDouble() /*override*/;
31
32 virtual int nextInt() /*override*/;
33
34 virtual int nextInt(int n) /*override*/;
35
36 virtual int64 nextLong() /*override*/;
37
38 virtual double nextGaussianDouble() /*override*/;
39
40 virtual void consumeCount(uint count) /*override*/;
41
42 virtual ::std::unique_ptr<::IRandom> fork() /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI Random();
49
50 MCAPI Random(uint seed, bool onlyUsedDeterministically);
51
52 MCAPI float nextFloat(float min, float max);
53
54 MCAPI_C float nextGaussianFloat();
55
56 MCAPI int nextInt(int min, int max);
57
58 MCAPI_C ::glm::vec3 nextVec3(float f);
59
60 MCAPI void setSeed(uint seed);
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI_C static ::Random& getThreadLocal();
67 // NOLINTEND
68
69public:
70 // static variables
71 // NOLINTBEGIN
72 MCAPI static ::Random& mThreadLocalRandom();
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor();
79
80 MCAPI void* $ctor(uint seed, bool onlyUsedDeterministically);
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCAPI void $dtor();
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI bool $nextBoolean();
93
94 MCAPI float $nextFloat();
95
96 MCAPI double $nextDouble();
97
98 MCAPI int $nextInt();
99
100 MCAPI int $nextInt(int n);
101
102 MCAPI int64 $nextLong();
103
104 MCAPI double $nextGaussianDouble();
105
106 MCAPI void $consumeCount(uint count);
107
108 MCAPI ::std::unique_ptr<::IRandom> $fork();
109
110
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCNAPI static void** $vftable();
117 // NOLINTEND
118};
Definition IRandom.h:13
static MCAPI void ** $vftable()