rand

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomDigits

func GenerateRandomDigits(digits int) (int, error)

GenerateRandomDigits 生成指定位数的随机数字 参数:

  • digits: 随机数的位数,必须为正整数

返回:

  • 生成的随机数
  • 错误信息,如果参数无效

Types

This section is empty.

Jump to

Keyboard shortcuts

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