Here you can find the source of randAngle()
public static float randAngle()
//package com.java2s; //License from project: Apache License public class Main { public static float randAngle() { return (float) (Math.random() * 2.0 * Math.PI); }/*from w w w . ja va2 s . c o m*/ }