MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / randomLevel

Method randomLevel

data_structures/skip_list.cpp:75–82  ·  view source on GitHub ↗

* Returns random level of the skip list. * Every higher level is 2 times less likely. * @return random level for skip list */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected