Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • rand() not so random

    0 answers - 416 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Message
    From: "Sisyphus"
    You could get 30-bit pseudo-random integers by doing:
    my $fn = oct("0b" . sprintf("%b", rand(32768)) . sprintf("%b",
    rand(32768)));
    didn't get the formatting right. I think "%b" needs to be replaced
    with "%015b".
    Cheers,
    Rob
    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:

Re: rand() not so random


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Windows"

EMSDN.COM