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