Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Float64 = rand.Float64
Functions ¶
func Const ¶
Const returns a sequence of numbers fixed by seeds.
Example ¶
package main
import (
"fmt"
"github.com/itsubaki/q/math/rand"
)
func main() {
c := rand.Const()
fmt.Printf("%.13f\n", c())
fmt.Printf("%.13f\n", c())
fmt.Printf("%.13f\n", c())
fmt.Printf("%.13f\n", rand.Const(1)())
fmt.Printf("%.13f\n", rand.Const(1)())
fmt.Printf("%.13f\n", rand.Const(1)())
fmt.Printf("%.13f\n", rand.Const(2)())
fmt.Printf("%.13f\n", rand.Const(3)())
fmt.Printf("%.13f\n", rand.Const(1, 0)())
fmt.Printf("%.13f\n", rand.Const(1, 1)())
fmt.Printf("%.13f\n", rand.Const(1, 2)())
}
Output: 0.9999275824803 0.8856419373529 0.3814775277115 0.2384231908739 0.2384231908739 0.2384231908739 0.8269781200925 0.8353847703964 0.2384231908739 0.3402859786606 0.6764556596678
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.