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
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
RandomUint32 returns a random uint32 0 to <max
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.