package xrand

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

Index

Functions

func WithLock

func WithLock() option

func WithSeed

func WithSeed(seed 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.57.1
Published
Mar 11, 2024
Platform
js/wasm
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.