import java.util.Scanner;
public class createRndInteger {
public static long createRndInteger(int n){
long m = (int)(Math.random()*Math.pow(2, n-1)+Math.pow(2, n-1));
return m;
}
public static void main(String[] args){
int n;
System.out.println("请输入随机数bit位的长度为n:");
Scanner a=new Scanner(System.in);
n=a.nextInt();
long integer=createRndInteger(n);
System.out.println("随机生成的"+n+"bit位的长整数是:"+integer);
}
}