Java tutorial
//package com.java2s; import java.util.Random; public class Main { public static int getRandomRotate() { Random random = new Random(); return random.nextInt(360); } }