oops, it's rand.Rand, not math.Rand
This commit is contained in:
parent
3153771721
commit
62c5f5fc0e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user