Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ rand
Function
rand
assets/js/maze.js:1–3 ·
view source on GitHub ↗
(max)
Source
from the content-addressed store, hash-verified
1
function
rand(max) {
2
return
Math.floor(Math.random() * max);
3
}
4
5
function
shuffle(a) {
6
for
(
let
i = a.length - 1; i > 0; i--) {
Callers
2
defineMaze
Function · 0.70
defineStartEnd
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected