public class TestMath { public static void main(String[] args) { double result = Math.sin(Math.PI/4); System.out.println("result = " + result); result = Math.random(); System.out.println("result = " + Math.round(100 * result)); result = Math.random(); System.out.println("result = " + Math.round(100 * result)); result = Math.random(); System.out.println("result = " + Math.round(100 * result)); } }