Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class strings {
- public static void main(String[] agrs){
- Random r=new Random();
- char[] set={'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
- for (int i=0; i<40; i++){
- System.out.print(set[r.nextInt(26)]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment