Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
生成 50,000 个唯一随机值并将其放入 Java 中的 ArrayList 的最佳方法是什么?
用 50,000 个连续值填充 ArrayList 并调用Collections.shuffle(list).
Collections.shuffle(list)