random

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

Index

Constants

View Source
const (
	KC_RAND_KIND_NUM   = 0 // number
	KC_RAND_KIND_LOWER = 1 //
	KC_RAND_KIND_UPPER = 2 //
	KC_RAND_KIND_ALL   = 3 //
)

Variables

This section is empty.

Functions

func Krand

func Krand(size int64, kind int) []byte

func RandInt

func RandInt(min, max int) int

func RandNumber

func RandNumber(size int64) string

Types

type Rand

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

func NewRand

func NewRand(seed int64) *Rand

func (*Rand) BytesSeed

func (r *Rand) BytesSeed(b []byte) *rand.Rand

Jump to

Keyboard shortcuts

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