Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Circle

<static> Random(circle, [out])

Description:

Returns a uniformly distributed random point from anywhere within the given Circle.

Parameters:

name type arguments description
circle Phaser.Geom.Circle

The Circle to get a random point from.

out object | Phaser.Geom.Point <optional>

A Point or point-like object to set the random x and y values in.

Returns:
Description:

A Point object with the random values set in the x and y properties.

Type:
Since: 3.0.0
Source: src/geom/circle/Random.js (Line 9)