MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / randi

Method randi

src/danfojs-base/shared/utils.ts:511–513  ·  view source on GitHub ↗
(a: number, b: number)

Source from the content-addressed store, hash-verified

509 let genNum: Array<number> = [];
510
511 function randi(a: number, b: number) {
512 return Math.floor(Math.random() * (b - a) + a);
513 }
514
515 function recursive(val: number, arr: Array<number>): any {
516 if (!arr.includes(val)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected