Subhrajyoti Majumder

less info
128 reputation
4
bio website
location Bangalore, India
age 25
visits member for 1 year, 6 months
seen May 7 '13 at 11:11

I like to read, write and format code. Recently fall in love with Neo4j.

Below piece of code prints - hello world - How interesting!

public static String randomString(int i){
        Random ran = new Random(i);
        StringBuilder sb = new StringBuilder();
        for (int n = 0; ; n++){
            int k = ran.nextInt(27);
            if (k == 0)
                break;
            sb.append((char)('`' + k));
        }
        return sb.toString();
}

System.out.println(randomString(-229985452) 
                       + " " + randomString(-147909649));

contact - subhrajyoti3[at]gmail[dot]com

Facebook | Linkedin | Twitter

and obviously thanks for visiting my profile. :)


This user has not answered any questions

5 Votes Cast

all time   by type  
5 up 3 question
0 down 2 answer