Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.js>MathUtils.random16

A simple transformation of three.js for use within a Deno workflow
Go to Latest
function MathUtils.random16
Deprecated
Deprecated

Use Math#random | Math.random()

import { MathUtils } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
const { random16 } = MathUtils;

Random float from 0 to 1 with 16 bits of randomness. Standard Math.random() creates repetitive patterns when applied over larger space.

Returns

number