MCPcopy Index your code
hub / github.com/processing/processing / random2D

Method random2D

core/src/processing/core/PVector.java:224–226  ·  view source on GitHub ↗

( begin auto-generated from PVector_random2D.xml ) Make a new 2D unit vector with a random direction. If you pass in "this" as an argument, it will use the PApplet's random number generator. You can also pass in a target PVector to fill. @webref pvector:method @usage web_application @return the

()

Source from the content-addressed store, hash-verified

222 * @see PVector#random3D()
223 */
224 static public PVector random2D() {
225 return random2D(null, null);
226 }
227
228
229 /**

Callers

nothing calls this directly

Calls 2

fromAngleMethod · 0.95
randomMethod · 0.80

Tested by

no test coverage detected