gxrand

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gxrand encapsulates some golang.math.rand functions

Package gxrand encapsulates some golang.math.rand functions.

Package gxrand encapsulates some golang.math.rand functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalRedPacket

func CalRedPacket(total int32, num int32) ([]int32, error)

CalRedPacket provides tencent red packet algorithm MOD: 2016-06-01 23:03

func RandDigitString

func RandDigitString(n int) string

func RandString

func RandString(n int) string

Types

type UUID

type UUID [16]byte

refer to https://github.com/gorilla/feeds/blob/master/uuid.go

func NewUUID

func NewUUID() *UUID

Constructs a new V4 (random) UUID.

func (*UUID) HexString

func (u *UUID) HexString() string

func (*UUID) String

func (u *UUID) String() string

Jump to

Keyboard shortcuts

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