Subhrajyoti Majumder

less info
101 reputation
2
bio website
location Bangalore, India
age 25
visits member for 1 year, 5 months
seen Jan 10 '13 at 8:45

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
Stack Overflow 18,005 rep 51944
The Workplace 128 rep 4
Server Fault 101 rep 2
Super User 101 rep 2
Meta 101 rep 3

2 Votes Cast

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