random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package random provides a random number generator to be used by ray tracer. Currently is using https://github.com/valyala/fastrand, for a good enough random that is really fast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomFloat added in v0.0.6

func RandomFloat(min float64, max float64) float64

RandomFloat returns a random float min to <max

func RandomNormalFloat added in v0.0.6

func RandomNormalFloat() float64

RandomNormalFloat returns a random float 0 to <1

func RandomUint32 added in v0.0.7

func RandomUint32(max uint32) uint32

RandomUint32 returns a random uint32 0 to <max

Types

This section is empty.

Jump to

Keyboard shortcuts

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