diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-07-14 17:37:05 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-07-14 17:37:05 +0000 |
| commit | bb63d0d399128bb8d1ca7633a87b76b251b807b2 (patch) | |
| tree | 856a8ad7b3f8e615b3957b220b69b11274c390e0 /puzzles.h | |
| parent | 3d2c442bc42050af618706899314414248126476 (diff) | |
| download | puzzles-bb63d0d399128bb8d1ca7633a87b76b251b807b2.zip puzzles-bb63d0d399128bb8d1ca7633a87b76b251b807b2.tar.gz puzzles-bb63d0d399128bb8d1ca7633a87b76b251b807b2.tar.bz2 puzzles-bb63d0d399128bb8d1ca7633a87b76b251b807b2.tar.xz | |
Introduce a `shuffle' utility function.
[originally from svn r6090]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |