MCPcopy
hub / github.com/apache/echarts / randomNumber

Function randomNumber

test/ut/spec/scale/interval.test.ts:120–122  ·  view source on GitHub ↗
(quantity: number)

Source from the content-addressed store, hash-verified

118 describe('ticks', function () {
119
120 function randomNumber(quantity: number): number {
121 return randomSign() * (1 + Math.random()) * Math.pow(10, randomSign() * quantity);
122 }
123 function randomSign() {
124 return (Math.random() - 0.5) > 0 ? 1 : -1;
125 }

Callers 1

doRandomTestFunction · 0.85

Calls 1

randomSignFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…