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
Happy Numbers
Wenfeng Ou
Sort
Linear Seach
4.a
Coding Numbers - Duplicate - Array
Remove unbalanced parentheses in a given expression
Vasanth Selvaraj
inheritance
UserDefinedBar