MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / pickWord

Method pickWord

Programs/Games/HangMan.java:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 public void pickWord(){
23 int rng = wordCollection.length;
24 Random num = new Random();
25 int i = num.nextInt(rng);
26 this.compPick = wordCollection[i];
27 }
28
29 public void setGuessedWord(){
30 int length = this.compPick.length();

Callers 1

playMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected