oops, it's rand.Rand, not math.Rand

This commit is contained in:
Kistaro Windrider 2023-11-18 15:53:38 -08:00
parent 3153771721
commit 62c5f5fc0e
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1,7 +1,7 @@
package auctionsim package auctionsim
import ( import (
"math" "math/rand"
) )
/** /**
@ -63,11 +63,11 @@ func (b *BiddersFromDistributions) Generate() (Bidder, bool) {
/** /**
* NormalDistribution is a Distribution representing the normal distribution * NormalDistribution is a Distribution representing the normal distribution
* with some specified standard deviation and mean. Multiple instances of * with some specified standard deviation and mean. Multiple instances of
* this type can share a math.Rand as long as they are not queried concurrently * this type can share a rand.Rand as long as they are not queried concurrently
* (since math.Rand is not threadsafe). * (since rand.Rand is not threadsafe).
*/ */
type NormalDistribution struct { type NormalDistribution struct {
Rand *math.Rand Rand *rand.Rand
StdDev float64 StdDev float64
Mean float64 Mean float64
} }