package xrand

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xrand"

Index

Functions

func WithLock

func WithLock() option

func WithSource

func WithSource(source int64) option

Types

type Rand

type Rand interface {
	Int64(max int64) int64
	Int(max int) int
	Shuffle(n int, swap func(i, j int))
}

func New

func New(opts ...option) Rand

Source Files

xrand.go

Version
v3.42.12
Published
Mar 3, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.