Skip Menu |

This queue is for tickets about the Scalar-List-Utils CPAN distribution.

Report information
The Basics
Id: 128172
Status: new
Priority: 0/
Queue: Scalar-List-Utils

Owner: Nobody in particular
Requestors: rvtol [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: optimize shuffle / sample
Date: Sat, 5 Jan 2019 12:07:26 +0100
To: bug-Scalar-List-Utils [...]
From: "Ruud H.G. van Tol" <rvtol [...]>
Download (untitled) / with headers
text/plain 342b
See also the recent comment on -- No exchange is needed if i == j. -- A single draw of n*(n-1) random bits is sufficient, -- as each step only needs to sum (n - i - 1) of them. Maybe implement an irand(N), that draws N-1 random bits and sums them. -- Ruud

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to