Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_rand.h
| Context not available. | |||||
| /** Return a pseudo-random (hash) float from an integer value */ | /** Return a pseudo-random (hash) float from an integer value */ | ||||
| float BLI_hash_frand(unsigned int seed); | float BLI_hash_frand(unsigned int seed); | ||||
| /** Fill a pseudo-random vector with 3 numbers N where 0<=N<(2^31) */ | |||||
| void BLI_rand_v3(int v[3]); | |||||
| /** Fill a pseudo-random vector with 3 numbers N where 0.0f<=N<1.0f */ | |||||
| void BLI_frand_v3(float v[3]); | |||||
| /** Shuffle an array randomly using the given seed. | /** Shuffle an array randomly using the given seed. | ||||
| * contents. This routine does not use nor modify | * contents. This routine does not use nor modify | ||||
| * the state of the BLI random number generator. | * the state of the BLI random number generator. | ||||
| Context not available. | |||||