Java tutorial
//package com.java2s; import java.util.Random; public class Main { public static boolean isFlee() { Random random = new Random(); int num = random.nextInt(10); return num < 2; } }