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

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

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function useShuffle
import { useShuffle } from "https://deno.land/x/netsaur@0.4.2/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[]