rand.go 297 B

12345678910111213141516
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package utils
  4. import "math/rand"
  5. // 随机返回所有人验证结果
  6. func GetRandOwnerVerify() string {
  7. num := rand.Intn(100)
  8. if num >= 95 {
  9. return "-1"
  10. } else {
  11. return "1"
  12. }
  13. }