MCPcopy Create free account
hub / github.com/dolthub/doltgresql / randomJSONNumber

Function randomJSONNumber

postgres/parser/json/random.go:63–65  ·  view source on GitHub ↗
(rng *rand.Rand)

Source from the content-addressed store, hash-verified

61}
62
63func randomJSONNumber(rng *rand.Rand) interface{} {
64 return json.Number(fmt.Sprintf("%v", rng.ExpFloat64()))
65}
66
67func doRandomJSON(complexity int, rng *rand.Rand) interface{} {
68 if complexity <= 0 || rng.Intn(10) == 0 {

Callers 1

doRandomJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected