What would be the best way to generate 50,000 unique random values which are put into an ArrayList in Java?
            Asked
            
        
        
            Active
            
        
            Viewed 138 times
        
    -2
            
            
        - 
                    3Looks like a homework assignment. If is for plain curiosity, then your curiosity falls in the homework assignment as well. Do something first then you could have further guidance. – Luiggi Mendoza Jul 24 '13 at 14:18
- 
                    Values in what range? – arshajii Jul 24 '13 at 14:20
- 
                    The values should be alphanumeric so A-Z + a-z and 0-9 – yellowhat5 Jul 24 '13 at 14:25
- 
                    See Kayaman's answer, but I suspect you have more requirements you forgot to include. – Peter Lawrey Jul 24 '13 at 22:27
1 Answers
2
            Fill the ArrayList with 50,000 sequential values and call Collections.shuffle(list).
 
    
    
        Kayaman
        
- 72,141
- 5
- 83
- 121
