int[] nums,nums.length=1000,并且nums[n]=new Random().nextInt(100),请写一个算法,求哪个数出现的次数最多?