{Uki's tech notes}
This notebook is a collection of code snippets and technical "how to" instructions.
Pages
Welcome
Julia
AI
Android
Java
Python
Jypyter
Conda
Linux/UNIX
LinkedIn
Medium articles
Uki's personal blog
Search This Blog
Java: making list random using List shuffle
by: Uki D. Lucas
A very useful method to randomly order the List:
import
java.util.Collections;
List list = fetch();
Collections.shuffle(list);
return
list.get(0);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment