• Post Reply Bookmark Topic Watch Topic
  • New Topic

Happy Guys plugs  RSS feed

 
Andreas Hollmann
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example how you can generate random numbers using generators of Java Happy Library.



Output:


In presented example and in your code duplicated numbers can be generated. For example [4,4,7,7,23,4]. If you are interested in duplicating different numbers let me know :-)

Best Regards
Andreas Hollmann
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!