MCPcopy 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

1function rand(max) {
2 return Math.floor(Math.random() * max);
3}
4
5function shuffle(a) {
6 for (let i = a.length - 1; i > 0; i--) {

Callers 2

defineMazeFunction · 0.70
defineStartEndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected