trand

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 3 Imported by: 9

Documentation

Overview

Package trand provides a thread-safe random number generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(seed int64) *rand.Rand

New returns a rand.Rand that is threadsafe.

func NewSeeded

func NewSeeded() *rand.Rand

NewSeeded returns a rand.Rand that's threadsafe and seeded with the current time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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