The program generates a number of different types of random numbers with the Random object simply by calling different methods: nextInt( ), nextLong( ), nextFloat( ) or nextDouble( ).

 
  • 通过random对象,程序可生成许多不同类型的随机数字。 做法很简单,只需调用不同的方法即可:nextInt(),nextLong(),nextFloat()或者nextDouble()。
今日热词
目录 附录 查词历史