oops, it's rand.Rand, not math.Rand
This commit is contained in:
parent
3153771721
commit
62c5f5fc0e
@ -1,7 +1,7 @@
|
||||
package auctionsim
|
||||
|
||||
import (
|
||||
"math"
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
/**
|
||||
@ -63,11 +63,11 @@ func (b *BiddersFromDistributions) Generate() (Bidder, bool) {
|
||||
/**
|
||||
* NormalDistribution is a Distribution representing the normal distribution
|
||||
* 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
|
||||
* (since math.Rand is not threadsafe).
|
||||
* this type can share a rand.Rand as long as they are not queried concurrently
|
||||
* (since rand.Rand is not threadsafe).
|
||||
*/
|
||||
type NormalDistribution struct {
|
||||
Rand *math.Rand
|
||||
Rand *rand.Rand
|
||||
StdDev float64
|
||||
Mean float64
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user