public class SorteoBoletaDeEstaSemana
{
public static void main(String args[])
{
int ganadorDeLaSemana=new Integer(0);
int cantidadParticipantes=new Integer(0);
boolean sorteado=false;
cantidadParticipantes=Integer.parseInt(JOptionPane.showInputDialog("Cantidad de concursantes ??? :P"));
do{
ganadorDeLaSemana=(int)Math.ceil(100*Math.random());
if(ganadorDeLaSemana
{
sorteado=true;
}
}while(!sorteado);
JOptionPane.showMessageDialog(null,"EL GANADOR DEL PASE DE CORTESIA ES EL PARTICIPANTE NUMERO "+Integer.toString(ganadorDeLaSemana));
System.exit(0);
}
}