Fix compilation errors.
This commit is contained in:
parent
58efb6fec8
commit
f151a9ad76
@ -1,6 +1,7 @@
|
|||||||
package auctionsim
|
package auctionsim
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ func (b *BiddersFromDistributions) Generate() (Bidder, bool) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return Bidder{}, false
|
return Bidder{}, false
|
||||||
}
|
}
|
||||||
cash, ok := v.Bankrolls.Draw()
|
cash, ok := b.Bankrolls.Draw()
|
||||||
if !ok {
|
if !ok {
|
||||||
return Bidder{}, false
|
return Bidder{}, false
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ type CappedBidderGenerator struct {
|
|||||||
/**
|
/**
|
||||||
* Generate implements BidderGenerator.
|
* Generate implements BidderGenerator.
|
||||||
*/
|
*/
|
||||||
func (c *CappedBidderGenerator) Generate() (float64, bool) {
|
func (c *CappedBidderGenerator) Generate() (Bidder, bool) {
|
||||||
if c.Lim <= 0 {
|
if c.Lim <= 0 {
|
||||||
return Bidder{}, false
|
return Bidder{}, false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user