From ba28fc489aab45968152153dd46e87a8a11f7e64 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 20 Jul 2005 03:33:44 +0000 Subject: - added an array shuffling function to BLI_rand --- source/blender/blenlib/BLI_rand.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenlib/BLI_rand.h') diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h index 6513dea8115..c352016ff53 100644 --- a/source/blender/blenlib/BLI_rand.h +++ b/source/blender/blenlib/BLI_rand.h @@ -65,5 +65,8 @@ void BLI_storerand (unsigned int loc_r[2]); */ void BLI_restorerand (unsigned int loc[2]); + /** Shuffle an array randomly using the given seed. */ +void BLI_array_randomize (void *data, int elemSize, int numElems, unsigned int seed); + #endif -- cgit v1.2.3