Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/rand.c
| Context not available. | |||||
| return BLI_rng_get_float(&theBLI_rng); | return BLI_rng_get_float(&theBLI_rng); | ||||
| } | } | ||||
| void BLI_rand_v3(int v[3]) | |||||
| { | |||||
| v[0] = BLI_rand(); | |||||
| v[1] = BLI_rand(); | |||||
| v[2] = BLI_rand(); | |||||
| } | |||||
| void BLI_frand_v3(float v[3]) | |||||
| { | |||||
| v[0] = BLI_frand(); | |||||
| v[1] = BLI_frand(); | |||||
| v[2] = BLI_frand(); | |||||
| } | |||||
| float BLI_hash_frand(unsigned int seed) | float BLI_hash_frand(unsigned int seed) | ||||
| { | { | ||||
| RNG rng; | RNG rng; | ||||
| Context not available. | |||||