Introduce a `shuffle' utility function.

[originally from svn r6090]
This commit is contained in:
Simon Tatham
2005-07-14 17:37:05 +00:00
parent 3d2c442bc4
commit bb63d0d399
2 changed files with 19 additions and 0 deletions

View File

@ -223,6 +223,9 @@ unsigned char *hex2bin(const char *in, int outlen);
void game_mkhighlight(frontend *fe, float *ret,
int background, int highlight, int lowlight);
/* Randomly shuffles an array of items. */
void shuffle(void *array, int nelts, int eltsize, random_state *rs);
/*
* version.c
*/