Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1000445 // Magical hello world from random strings

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (30L) is out of date.

1  
!636
2  
3  
main {
4  
  psvm {
5  
    System.out.println(randomString(-229985452) + " " + randomString(-147909649));
6  
  }
7  
  
8  
  static String randomString(int i) {
9  
    Random ran = new Random(i);
10  
    StringBuilder sb = new StringBuilder();
11  
    while (true)
12  
    {
13  
        int k = ran.nextInt(27);
14  
        if (k == 0)
15  
            break;
16  
17  
        sb.append((char)('`' + k));
18  
    }
19  
20  
    return sb.toString();
21  
  }
22  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, exkalrxbqyxc, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, omzkqqnokwlv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000445
Snippet name: Magical hello world from random strings
Eternal ID of this version: #1000445/1
Text MD5: 5124b809ddb9abb56ebd0a1e267eea57
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-06 20:47:18
Source code size: 417 bytes / 22 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 582 / 547
Referenced in: [show references]