72 unsigned int elem_size_i,
99 unsigned int elem_size,
100 unsigned int elem_num,
126void BLI_halton_1d(
unsigned int prime,
double offset,
int n,
double *r);
127void BLI_halton_2d(
const unsigned int prime[2],
double offset[2],
int n,
double *r);
128void BLI_halton_3d(
const unsigned int prime[3],
double offset[3],
int n,
double *r);
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
void int BLI_rng_get_int(struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_rng_shuffle_array(struct RNG *rng, void *data, unsigned int elem_size_i, unsigned int elem_num) ATTR_NONNULL(1
struct RNG * BLI_rng_new(unsigned int seed)
void BLI_rng_get_tri_sample_float_v3(RNG *rng, const float v1[3], const float v2[3], const float v3[3], float r_pt[3]) ATTR_NONNULL()
struct RNG * BLI_rng_copy(const struct RNG *rng) ATTR_NONNULL(1)
void BLI_rng_threaded_free(struct RNG_THREAD_ARRAY *rngarr) ATTR_NONNULL(1)
RNG_THREAD_ARRAY * BLI_rng_threaded_new(void)
void BLI_rng_srandom(struct RNG *rng, unsigned int seed) ATTR_NONNULL(1)
void BLI_rng_free(struct RNG *rng) ATTR_NONNULL(1)
void BLI_rng_seed(struct RNG *rng, unsigned int seed) ATTR_NONNULL(1)
void BLI_hammersley_1d(unsigned int n, double *r)
unsigned int BLI_rng_get_uint(struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float BLI_hash_frand(unsigned int seed) ATTR_WARN_UNUSED_RESULT
struct RNG * BLI_rng_new_srandom(unsigned int seed)
void BLI_halton_2d_sequence(const unsigned int prime[2], double offset[2], int n, double *r)
void BLI_rng_get_char_n(RNG *rng, char *bytes, size_t bytes_len) ATTR_NONNULL(1
void BLI_halton_3d(const unsigned int prime[3], double offset[3], int n, double *r)
void void BLI_rng_shuffle_bitmap(struct RNG *rng, unsigned int *bitmap, unsigned int bits_num) ATTR_NONNULL(1
void BLI_halton_2d(const unsigned int prime[2], double offset[2], int n, double *r)
double BLI_rng_get_double(struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void void void BLI_rng_skip(struct RNG *rng, int n) ATTR_NONNULL(1)
void BLI_bitmap_randomize(unsigned int *bitmap, unsigned int bits_num, unsigned int seed) ATTR_NONNULL(1)
float BLI_thread_frand(int thread) ATTR_WARN_UNUSED_RESULT
int BLI_rng_thread_rand(RNG_THREAD_ARRAY *rngarr, int thread) ATTR_WARN_UNUSED_RESULT
void BLI_thread_srandom(int thread, unsigned int seed)
void void void BLI_rng_get_tri_sample_float_v2(struct RNG *rng, const float v1[2], const float v2[2], const float v3[2], float r_pt[2]) ATTR_NONNULL()
float BLI_rng_get_float(struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_array_randomize(void *data, unsigned int elem_size, unsigned int elem_num, unsigned int seed)
void BLI_halton_1d(unsigned int prime, double offset, int n, double *r)
void BLI_rng_get_float_unit_v2(struct RNG *rng, float v[2]) ATTR_NONNULL(1
int BLI_thread_rand(int thread) ATTR_WARN_UNUSED_RESULT
void void BLI_rng_get_float_unit_v3(struct RNG *rng, float v[3]) ATTR_NONNULL(1
void BLI_array_frand(float *ar, int count, unsigned int seed)
void BLI_hammersley_2d_sequence(unsigned int n, double *r)
ATTR_WARN_UNUSED_RESULT const BMVert * v2
ATTR_WARN_UNUSED_RESULT const BMVert * v
static unsigned long seed
blender::RandomNumberGenerator rng