package generator import ( "fmt" uuid2 "github.com/gofrs/uuid" "math/rand" "strconv" "time" "github.com/google/uuid" ) func MedicalRecordNumberRand() string { return RandStringRunes(10) } func RandStringRunes(n int) string { rand.Seed(time.Now().UnixNano()) // seed the random number generator const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" b := make([]byte, n) for i := range b { b[i] = letterBytes[rand.Intn(len(letterBytes))] } return string(b) } // format -> -