Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
rd dap da
import java.util.Random; class Rextester{ public static void main(String args[]) { random( 2 ); } public static void random(int n){ Random rd = new Random(); char []cot = {'A','B','C','D','E'}; int i = 0; while(i++ < n){ char x = cot[rd.nextInt(5)]; int y = rd.nextInt(5)+1; System.out.println(""+x+y); } } }
run
|
edit
|
history
|
help
0
add2
1d
Count and Say
3.F
Coloring map
Coding Challenge - 01 (Even numbers)
String Palindrome
binary square root
friend circle problem
Write a program to sort the odd elements descending order and even elements in ascending order