search.cpan.org

search for math/statistics functions in perl. there are functions
which can generate random numbers with uniform/gaussian etc distribution,
don't know about correlation. once you've generated the numbers its very
easy to convert it into a 32  bit stream. for larger vector, just
concatenate the bit streams. you can write a script to do this.

Convert decimal to binary
sub dec2bin {
  my $times = 32;
  my $str = unpack("B32", pack("N", shift));
  $str =~ s/^0{$times}(?=\d)//;
  return $str;
}

hope this helps.

