in reply to Re^2: Randomly biased, random numbers.
in thread Randomly biased, random numbers.

How about using a inverse log distance distribution? Maybe something like this :-

my $d = max_distance * ( 1 - log( rand(1000) ) / log( 1000 ) );

Replies are listed 'Best First'.
Re^4: Randomly biased, random numbers.
by BrowserUk (Patriarch) on Dec 06, 2013 at 18:54 UTC

    See Re^2: Randomly biased, random numbers. for a similar type of mapping function and why its not suitable.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.