https://bugs.documentfoundation.org/show_bug.cgi?id=158976
--- Comment #4 from Rafael Lima <[email protected]> --- I guess the problem is that the line lRandomIndex = Int(Rnd * (lCurrentIndex - lMin)) + lMin Will always force the value in the last position to be moved away to another position. It can never fall in its own position, because lRandomIndex can never be the last position. For instance, in an array with 4 elements (0 to 3), even if Rnd is very large, it will never be 1. So: Int(0.99999 * (3 - 0) + 0 Will be equal to at most 2... it can never be 3. -- You are receiving this mail because: You are the assignee for the bug.
