randutil

package
v0.0.0-...-4da1013 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Range

func Range(min int, max int) int

如果max小于min,返回min 如果min等于0,返回0

func Weight

func Weight(source map[int]int) int

key = 键, val=权重

func WeightString

func WeightString(source map[string]int) string

key = 键, val=权重

Types

This section is empty.

Jump to

Keyboard shortcuts

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