mathiter

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

mathiter defines iterator source/collector that corresponds to std `math/*`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rng

func Rng[Num intType](n Num) iter.Seq[Num]

Rng returns an iterator over an infinite sequence of pseudo-random numbers. Numbers are distributed in the half-open interval [0,n).

func RngSourced

func RngSourced[Num intType](n Num, src rand.Source) iter.Seq[Num]

RngSourced is like Rng but accepts any arbitrary rand.Source implementations as a pseudo-random number source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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