Skip to content

Commit

Permalink
make random numbers more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
dgryski committed Jun 15, 2015
1 parent 04b15e9 commit a23015f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion movingmedian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func getData(rangeSize, windowSize int) []float64 {
var data = make([]float64, rangeSize)
var r = rand.New(rand.NewSource(99))
for i, _ := range data {
data[i] = r.Float64()
data[i] = math.Floor(1000 * r.Float64())
}

return data
Expand Down

0 comments on commit a23015f

Please sign in to comment.