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