filename.rb
package zundokoProgram;
import java.util.Random;
public class Zundoco_random {
public static void main(String[] args) {
Random random = new Random();
String[] zun_doko = { "Zun", "Where" };
String zundoko = new String();
while (!(zundoko.equals("Zun Zun Zun Zun Where"))) {
zundoko = "";
for (int i = 0; i < 5; i++) {
String s = zun_doko[random.nextInt(2)]; //Randomly selected array zun in variable s_number of doko elements[0,1]= "Zun",Enter either one character of "where"
zundoko = zundoko.concat(s); //Attach the variable s to the variable zundoko
}
System.out.println(zundoko);
}
System.out.println("Kiyoshi is good! !! !!");
}
}
I would like to post for the first time in commemoration of the Zundoko program ...! !! It took about 3 days.