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 declare
13 // clang-format off
14 struct ISystemInterface;
15 class getThreadLocal;
16 // clang-format on
17
18 // Random inner types define
20 public:
21 // ISystemInterface inner types declare
22 // clang-format off
24 // clang-format on
25
26 // ISystemInterface inner types define
28 };
29
31
32 using result_type = uint;
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 2544, ::std::optional<::Core::Random>> mOwnedRandom;
38 ::ll::TypedStorage<8, 8, ::Bedrock::Application::ThreadOwner<::Core::Random&, 0>> mRandom;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 Random();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~Random() /*override*/ = default;
49
50 virtual bool nextBoolean() /*override*/;
51
52 virtual float nextFloat() /*override*/;
53
54 virtual double nextDouble() /*override*/;
55
56 virtual int nextInt() /*override*/;
57
58 virtual int nextInt(int n) /*override*/;
59
60 virtual int64 nextLong() /*override*/;
61
62 virtual double nextGaussianDouble() /*override*/;
63
64 virtual void consumeCount(uint count) /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI Random(uint seed, bool onlyUsedDeterministically);
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static ::Random createSeedable();
77
78 MCAPI static ::Random& getThreadLocal();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(uint seed, bool onlyUsedDeterministically);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI bool $nextBoolean();
91
92 MCAPI float $nextFloat();
93
94 MCAPI double $nextDouble();
95
96 MCAPI int $nextInt();
97
98 MCAPI int $nextInt(int n);
99
100 MCAPI int64 $nextLong();
101
102 MCAPI double $nextGaussianDouble();
103
104 MCAPI void $consumeCount(uint count);
105
106
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCNAPI static void** $vftable();
113 // NOLINTEND
114};
Definition IRandom.h:10
Definition Random.h:30
static MCAPI void ** $vftable()
Definition Random.h:19