Skip to main content
Module

x/dallmo_util_math/app.ts

deno module, a collection of math util under dallmo-util
Latest
import * as dallmoUtilMath from "https://deno.land/x/dallmo_util_math@v1.2.0/app.ts";

Functions

given a number, return a string with leading zero in specified output_length by char count

given 2 integers, return an random integer in between, inclusive.

this function returns a number array with the given size, and each item a random integer

given an input number ( input_num ), and the min and max value of each section, this function divide the input number into random sections, with the requirement that the sum of all sections equal to the input number, and return the result as an array

test connecting to this child module from parent