I saw what was wrong in the collection, i made two arraylists shuffled the first one and then added it to the second arraylist and then sorted the second one.
ty norm
Type: Posts; User: naz585
I saw what was wrong in the collection, i made two arraylists shuffled the first one and then added it to the second arraylist and then sorted the second one.
ty norm
I use JCreator LE V1.00. It does not show the contents of the collection. Below is exactly whats printed from the code above. the numbers are random everytime. I just need to find a way to put the...
before i used collection.sort i would get 5 random numbers from 51-100 unsorted and a 6th number from 1-50 which is always last and doesn't need to be sorted
Output:
This week's lottery numbers...
if i use collection.sort(numbers) it just prints the same 5 numbers every time.
51 52 53 54 55
i need a code that can print 6 random numbers. the first five numbers have to be from 51-100 and the sixth one has to be from 1-50, the numbers cannot repeat and they have to be sorted from greatest...