Patch: Generic function RandomFrom
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
The three RandomFrom versions are useful but there are scenarios that demand a more generic approach.
This patch basically adds
generic function RandomFrom&LtPos;T>(const AValues:T):T; //math is objfpc mode.
Mantis conversion info:
- Mantis ID: 31600
- OS: All
- OS Build: All
- Build: 35664
- Platform: All
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 36706 (#162b9384)
- Target version: 3.2.0