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, 2536, ::Bedrock::Application::ThreadOwner<::Core::Random, 0>> mRandom;
19 // NOLINTEND
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~Random() /*override*/ = default;
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#ifdef LL_PLAT_C
53 MCAPI float nextGaussianFloat();
54#endif
55 // NOLINTEND
56
57public:
58 // static variables
59 // NOLINTBEGIN
60 MCAPI static ::Random& mThreadLocalRandom();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor();
67
68 MCAPI void* $ctor(uint seed, bool onlyUsedDeterministically);
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI bool $nextBoolean();
75
76 MCAPI float $nextFloat();
77
78 MCAPI double $nextDouble();
79
80 MCAPI int $nextInt();
81
82 MCAPI int $nextInt(int n);
83
84 MCAPI int64 $nextLong();
85
86 MCAPI double $nextGaussianDouble();
87
88 MCAPI void $consumeCount(uint count);
89
90 MCAPI ::std::unique_ptr<::IRandom> $fork();
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition IRandom.h:10
static MCAPI void ** $vftable()