0528_random-pick-with-weight

command
v0.0.0-...-60194e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Unlicense Imports: 2 Imported by: 0

README

0528_random-pick-with-weight

有权重的随机.

把每一项的范围拼接, 在这个总的范围内随机取值, 看落在哪个区间里.

最后的取值用二分法.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL