1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

doc: update for release v2.2.8

This commit is contained in:
dudaodong
2023-12-11 15:30:33 +08:00
parent c5297ec329
commit 96320069f4
9 changed files with 29 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ func RandInt(min, max int) int {
}
// RandFloat generate random float64 number between [min, max) with specific precision.
// Play: todo
// Play: https://go.dev/play/p/zbD_tuobJtr
func RandFloat(min, max float64, precision int) float64 {
if min == max {
return min
@@ -103,7 +103,7 @@ func RandNumeralOrLetter(length int) string {
// RandSymbolChar generate a random symbol char of specified length.
// symbol chars: !@#$%^&*()_+-=[]{}|;':\",./<>?.
// Play: todo
// Play: https://go.dev/play/p/Im6ZJxAykOm
func RandSymbolChar(length int) string {
return random(SymbolChars, length)
}
@@ -164,7 +164,7 @@ func RandUniqueIntSlice(n, min, max int) []int {
}
// RandFloats generate a slice of random float64 numbers of length n that do not repeat.
// Play: todo
// Play: https://go.dev/play/p/I3yndUQ-rhh
func RandFloats(n int, min, max float64, precision int) []float64 {
nums := make([]float64, n)
used := make(map[float64]struct{}, n)