summaryrefslogtreecommitdiff
blob: 141766229196fafb83e297f3b9aca7e0a7bf6a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _ZoO_CORE_INDEX_H_
#define _ZoO_CORE_INDEX_H_

#include "index_types.h"

/*
 * Returns a random ZoO_index.
 */
ZoO_index ZoO_index_random (void);

/*
 * Returns a random ZoO_index, included in [0, limit]
 */
/*@
 @ ensures (\result <= limit);
 @*/
ZoO_index ZoO_index_random_up_to (const ZoO_index limit);

#endif