Generating random numbers in eclipse -


i supposed write private helper method generates random numbers between 1- 60.the method supposed checks see if array numbers contains the newly generated number number. if it’s in numbers, it need to regenerate it again numbers in array have unique.

here code

private void generate(int index) {         random rand = new random();         (int = 0; <= 6; i++) {              int num = rand.nextint(61) + 1;     index = num;         } 

i dont know go here.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -