Thanx alot,
my question is how to differentiate signed & unsgined? & how to generate random negative vlues of 32 bit integer.
Thanks
Raghavendra
In Perl, there are only three basic datatypes scalars, arrays and hashes. So, a variable $x can be used to assign a signed or unsigned integer or both in a script. Both signed and unsigned integers will be considered as scalar datatype. Please clarify, if your question is different.
To generate random negative values of 32 bit integer, you may use the following approach:

$range = 2**31; # 2^(n1): n=32

$min = 2**31; #lowest integer

$val= int(rand($range)) + $min;

print "$val\n";

 Nithin