Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coprime ¶
Example ¶
package main import ( "fmt" "github.com/itsubaki/q/math/rand" ) func main() { p := rand.Coprime(15) for _, e := range []int{2, 4, 7, 8, 11, 13, 14} { if p == e { fmt.Println("found") break } } }
Output: found
func CryptoInt64 ¶
Example ¶
package main import ( "fmt" "github.com/itsubaki/q/math/rand" ) func main() { r := rand.CryptoInt64(2, 14) for _, e := range []int64{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13} { if r == e { fmt.Println("found") break } } }
Output: found
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.