diff --git a/skiplist.go b/skiplist.go index 951601c..9b36c9d 100644 --- a/skiplist.go +++ b/skiplist.go @@ -49,8 +49,11 @@ func (list *Skiplist) setFastRandom(isSet bool) { } /*New : Create new skiplist + prob : Probability of bernoulli trials to find level of insertion. + maxLevels: max level of insertion + fastRandom: true -> use optimised random level generation with set probability 0.5 (fast), false -> use bernoulli trials with consecutive calls to random (slower but variable probability) */ func New(prob float64, maxLevels int, fastRandom bool) *Skiplist {