Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/josdejong/mathjs
/ pickRandom.test.js
File
pickRandom.test.js
test/unit-tests/function/probability/pickRandom.test.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
assert from
'assert'
2
import
math from
'../../../../src/defaultInstance.js'
3
import
{ flatten } from
'../../../../src/utils/array.js'
4
Callers
nothing calls this directly
Calls
10
flatten
Function · 0.90
create
Method · 0.80
times
Function · 0.70
matrix
Method · 0.65
size
Method · 0.65
forEach
Method · 0.65
filter
Method · 0.65
round
Method · 0.65
parse
Method · 0.65
toTex
Method · 0.65
Tested by
no test coverage detected