Cibin,
Yes, that is what $RANDOM is for. It returns a 32-bit signed integer (range 0 - 2^31), so you can divide it by the appropriate value to get something in the length range you're after. -- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30309 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry.