Random r = new Random(); bool result = r.nextDouble() <= 0.7; // Gives a chance of 70% to get True result.