random

package
v0.0.0-...-7166033 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastInt

func FastInt(min, max int) int

FastInt 返回 [min, max) 范围的快速随机整数 可用 FastInt(100, 999) 生成 3 位随机数,以此类推

func Int

func Int(min, max int) int

Int 返回 [min, max) 范围的加密安全随机整数 可用 Int(100, 999) 生成 3 位随机数,以此类推

func RGB

func RGB(tone string) color.Color

RGB 返回随机 RGB 颜色 tone:light=浅色,dark=深色

Types

This section is empty.

Jump to

Keyboard shortcuts

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