Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/mod.ts>useShuffle

Powerful machine learning, accelerated by WebGPU
Go to Latest
function useShuffle
import { useShuffle } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/mod.ts";

Shuffle a given array in-place.

Parameters

arr: T[]

Array to shuffle

Get a shuffled array of numbers from 0 to the given number

Parameters

max: number

Returns

number[]

Get a shuffled array of numbers between the given range

Parameters

min: number
max: number

Returns

number[]