Yep, you bet.
You can simplify it as well by converting a collection out of it. Collections can be shuffled, so you could simply convert the array to a list, and then shuffle the list and pull the first item.
String s = "1;17;22;14;2";
List<String> list = Arrays.asList(s.split(";"));
System.out.println("Random item: " + list.get(0));
For a simple example.