random

package
v0.0.0-...-4263410 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32

func Float32() float32

Float32 returns mathematical random float number in the (0.0, 1.0> interval.

func SeedGlobal

func SeedGlobal()

SeedGlobal can be used to initialize the global thread-safe pseudo-random generator from the standard library. This should be called from all init() functions for all binaries.

It seeds both math/rand and e/exp/rand packages just in case IDE imports one or the other by accident.

func TraceID

func TraceID() trace.TraceID

TraceID generates a random OpenTelemetry Trace ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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