Add the new NumGen
Added the new and distributed NumGen, which replaces the old one. The old implementation was based on a master server.
This commit is contained in:
1 parent
6dab89a1d4
commit
81c4d15d9f
19 files changed
+342
-300
No files matched your search
@@ -11,6 +11,12 @@ func RandomInteger(max int) (rnd int) {
|
||||
return
|
||||
}
|
||||
|
||||
// Gets a random 64 bit float between 0.0 and 1.0 (but without 1.0).
|
||||
func RandomFloat64() (rnd float64) {
|
||||
rnd = rand.Float64()
|
||||
return
|
||||
}
|
||||
|
||||
// Gets a random UUID (v4).
|
||||
func RandomGUID() (guidString string) {
|
||||
guidString = uuid.NewV4().String()
|
||||
|
||||
Reference in new issue
Block a user