MCPcopy
hub / github.com/grafana/tempo / randFloat

Function randFloat

pkg/traceql/engine_metrics_test.go:3024–3026  ·  view source on GitHub ↗
(minimum, maximum float64)

Source from the content-addressed store, hash-verified

3022}
3023
3024func randFloat(minimum, maximum float64) float64 {
3025 return rand.Float64()*(maximum-minimum) + minimum
3026}
3027
3028func generateSpans(count int, startTimes []int, value string) []Span {
3029 spans := make([]Span, 0)

Callers 1

BenchmarkSumOverTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected