Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> RandomXYZW(vec4, [scale])

Description:

Compute a random four-dimensional vector.

Parameters:

name type arguments Default description
vec4 Phaser.Math.Vector4

The Vector to compute random values for.

scale number <optional> 1

The scale of the random values.

Returns:
Description:

The given Vector.

Since: 3.0.0
Source: src/math/RandomXYZW.js (Line 7)