Subhrajyoti Majumder

less info
101 reputation
2
bio website
location Bangalore, India
age 25
visits member for 1 years, 11 months
seen Jun 20 '13 at 11:42

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
This user has not asked any questions
This user has not participated in any tags

2 Votes Cast

all time   by type  
2 up 1 question
0 down 1 answer