Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is a random source using xorshift64* algorithm.
Example ¶
package main
import (
"fmt"
"math/rand"
"github.com/shogo82148/randsrc/xorshift64s"
)
func main() {
src := xorshift64s.New(1)
r := rand.New(src)
for i := 0; i < 10; i++ {
fmt.Println(r.Int63())
}
}
Output: 2590246147603197582 6190148572457775758 6694749039465435051 2799563657670656206 518139185881502464 7220297033279722860 7505628576162986176 6212933923565509830 3123625198308562972 6916782580061085002
Click to show internal directories.
Click to hide internal directories.