HPCToolkit
randomizer.h
Go to the documentation of this file.
1
/*
2
* randomizer.h
3
*
4
*/
5
6
#ifndef __RANDOMIZER_H__
7
#define __RANDOMIZER_H__
8
9
// generate a random level for a skip list node in the interval
10
// [1 .. max_height]. these random numbers are distributed such that the
11
// probability for each height h is half that of height h - 1, for h in
12
// [2 .. max_height].
13
int
14
random_level
(
int
max_height);
15
16
17
#endif
/* __RANDOMIZER_H__ */
random_level
int random_level(int max_height)
Definition:
randomizer.c:23
src
lib
prof-lean
randomizer.h
Generated by
1.8.13