10 r123::Philox4x32::ctr_type c = {state.current_date.value, value_in, 0, 0 };
11 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23};
13 r123::Philox4x32::ctr_type r =
rng(c, k);
19 r123::Philox4x32::ctr_type c = {value_in_hi, value_in_lo, 0, 0};
20 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23 };
22 r123::Philox4x32::ctr_type r =
rng(c, k);
29 r123::Philox4x32::ctr_type c = {state.current_date.value, value_in, 0, 0 };
30 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23 };
32 r123::Philox4x32::ctr_type r =
rng(c, k);
39 r123::Philox4x32::ctr_type c = {value_in_hi, value_in_lo, 0, 0 };
40 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23 };
42 r123::Philox4x32::ctr_type r =
rng(c, k);
52 r123::Philox4x32::ctr_type c = {state.current_date.value, value_in, 0, 0 };
53 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23};
54 r123::Philox4x32::ctr_type r =
rng(c, k);
60 pattern.u = 0x3f800000;
61 pattern.u |= 0x7fffff & r[1];
62 return pattern.f - 1.0f;
67 r123::Philox4x32::ctr_type c = {value_in_hi, value_in_lo, 0, 0 };
68 r123::Philox4x32::key_type k = {state.game_seed, 0x3918CA23};
69 r123::Philox4x32::ctr_type r =
rng(c, k);
75 pattern.u = 0x3f800000;
76 pattern.u |= 0x7fffff & r[1];
77 return pattern.f - 1.0f;
random_pair get_random_pair(sys::state const &state, uint32_t value_in)
uint32_t reduce(uint32_t value_in, uint32_t upper_bound)
float get_random_float(sys::state const &state, uint32_t value_in)
uint64_t get_random(sys::state const &state, uint32_t value_in)
Holds important data about the game world, state, and other data regarding windowing,...