I was able to generate a random number between [0,50] in my java code but how do I proceed in order to create for example a number in the range of [1,49]
This is my code:
public class Totoloto 
{
    public static void main(String[] args) 
    {
        int n = (int) (Math.random()*50);
        System.out.println("Number generated: "+n); 
    }    
}
 
     
     
     
     
     
    