/**
* @author dingshansheng
*
*/
public class MathRondom {
/**
* @param num1 起始范围参数
* @param num2 终止范围参数
* @return 随机的范围数
*/
public static int GetEvenNum(double num1,double num2)
{
//产生num1-num2之间的随机数
int s =(int)num1+(int)(Math.random()*(num2-num1));
return s;
}
public static int GetEvenNum1(double num1,double num2)
{
//产生num1-num2之间的随机数
int m =(int)num1+(int)(Math.random()*(num2-num1));
return m;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
//调用产生随机数方法
System.out.println("您的双色球号码是:");
int s;
int a[]=new int[6];
for(int i=0;i<6;i++)
{
s=GetEvenNum(1,32);