/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.worksheet1; /** * * @author Shanmuga Priya M */ public class randomno { /** * @param args the command line arguments */ public static void main(String[] args) { int a= (int)((Math.random()*10)); System.out.println(a); // TODO code application logic here } }