random

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Random

type Random struct {
	// contains filtered or unexported fields
}

func NewRandom

func NewRandom(seed int) *Random

NewRandom 创建一个新的随机数生成器 NewRandom creates a new random number generator

func (*Random) Random

func (c *Random) Random(weight int) int

func (*Random) SetSeed

func (c *Random) SetSeed(i int)

Jump to

Keyboard shortcuts

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