Skip to main content
Module

x/simple_utility/mod.ts>generateRandom

Simplify processing for Deno.
Go to Latest
function generateRandom
import { generateRandom } from "https://deno.land/x/simple_utility@v2.0.10/mod.ts";

Generate random binary with any number of bytes.

Examples

Example 1

const random = generateRandom(16);

Parameters

n: number

Returns

Uint8Array