Mercurial > gemma
diff pkg/common/random.go @ 4162:8c5df0f3562e
Made 'golint' and 'staticcheck' happy with common package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 02 Aug 2019 17:53:18 +0200 |
parents | 01ce3ba9b0d0 |
children | 5f47eeea988d |
line wrap: on
line diff
--- a/pkg/common/random.go Fri Aug 02 17:14:13 2019 +0200 +++ b/pkg/common/random.go Fri Aug 02 17:53:18 2019 +0200 @@ -68,6 +68,8 @@ return string(out) } +// Random returns a function which generates pseudo random +// values in the range between low and high. func Random(low, high float64) func() float64 { if low > high { low, high = high, low