Skip to main content
Module

x/denouse/mod.ts

Util functions for Deno
Go to Latest
import * as denouse from "https://deno.land/x/denouse@v0.0.6/mod.ts";

Functions

Convert milliseconds into a duration object.

Generate a normal random variate.

Generate a normally distributed array.

Get n evenly distributed numbers in a range.

Rearrange characters in a string randomly.

Get random number from range

Get an array of numbers between a given range, incremented by a step.

Shuffle a given array in-place.

Split arrays by their first axis

Get current time as an object

Remove duplicate values in an array. Uses a strict = for identifying duplicates.

Roll one from an array of weighted choices.