Code example for Random

Methods: nextInt

0
import android.graphics.Color; 
 
public class Utils { 
 
    public static int randomColor() { 
        Random random = new Random();
        return Color.rgb(random.nextInt(255), random.nextInt(255), random.nextInt(255));
    } 
     
}