randfile
Program for picking a random file
This program selects a random file from the current directory, including
files in subdirectories. If you like to manage your music collection using
the command line, this program can be used to approximate \"shuffle\".
More precisely, it starts at the current directory, picks a random entry,
and descends if it is a directory. It does not give more weight to
directories containing more files. It should only fail if there are no
regular files under the current directory that you can see.
If you are wondering why I bothered to use crypto-grade random number
generation, it is because I found @System.Random@ to be unsatisfactory.
With @System.Random@, this program tended to return the same file
repeatedly.
Note: on Unix, this program follows symbolic links, while on Windows, it
doesn't. Symbolic links were introduced in Windows Vista and
Windows Server 2008.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.0 | 2011-10-19 21:17 UTC | JoeyAdams | +195/−0 lines, 5 filesdep +Win32dep +basedep +crypto-apisetup-changed |
Dependencies of randfile-0.1.0.0
Win32 >=0 2.14.2.1 → 2.14.2.2
| 2026-05-27 18:35 UTC | 2.14.2.2 | +8/−5 lines, 4 filesPVP ok |
| 2025-06-23 19:51 UTC | 2.14.2.1 | +17/−3 lines, 4 filesPVP ok |
| 2025-05-31 06:32 UTC | 2.14.2.0 | +260/−13 lines, 10 filesPVP ok |
| 2024-11-12 20:10 UTC | 2.14.1.0 | +235/−11 lines, 11 filesPVP ok |
| 2024-01-13 23:14 UTC | 2.14.0.0 | +740/−208 lines, 13 filesdep +os-stringdep ~filepath |
showing 5 of 49 versions
base >=4 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
crypto-api >=0 0.13.2 → 0.13.3
| 2018-01-05 00:16 UTC | 0.13.3 | +160/−18 lines, 5 filesdep ~basePVP: major bump suggested |
| 2014-09-12 00:28 UTC | 0.13.2 | +10/−28 lines, 2 filesdep ~bytestringPVP ok |
| 2014-09-12 00:16 UTC | 0.13.1 | +34/−22 lines, 5 filesdep ~bytestring |
| 2013-12-30 18:16 UTC | 0.13 | +580/−413 lines, 9 files |
| 2013-08-16 03:01 UTC | 0.12.2.2 | +11/−5 lines, 4 filesPVP: minor bump suggested |
showing 5 of 39 versions
directory >=0 1.3.10.1 → 1.3.11.0
| 2026-05-27 05:59 UTC | 1.3.11.0 | +4560/−4504 lines, 25 filesdep ~file-iodep ~filepathdep ~os-stringPVP ok |
| 2026-01-05 11:08 UTC | 1.3.10.1 | +4989/−4830 lines, 43 filesPVP: major bump suggested |
| 2025-12-24 02:55 UTC | 1.3.10.0 | +90/−39 lines, 7 filesdep ~Win32dep ~basePVP: major bump suggested |
| 2024-10-11 10:43 UTC | 1.3.9.0 | +235/−158 lines, 14 filesdep +file-iodep ~basedep ~timePVP: major bump suggested |
| 2024-05-20 06:52 UTC | 1.3.8.5 | +15/−13 lines, 7 filesdep ~basePVP ok |
showing 5 of 55 versions
filepath >=0 1.5.4.0 → 1.5.5.0
| 2026-01-20 08:14 UTC | 1.5.5.0 | +68/−12 lines, 8 filesdep +QuickCheckdep +template-haskell-liftdep +template-haskell-quasiquoterPVP ok |
| 2024-11-17 13:06 UTC | 1.5.4.0 | +26/−6 lines, 3 filesdep ~basePVP ok |
| 2024-06-29 15:30 UTC | 1.5.3.0 | +876/−871 lines, 13 filesdep −QuickCheckdep ~basePVP: major bump suggested |
| 2024-01-26 07:02 UTC | 1.5.2.0 | +330/−256 lines, 11 filesdep +generic-derivingdep +generic-randomdep +tastydep ~basedep ~os-stringPVP ok |
| 2023-11-25 08:29 UTC | 1.5.0.0 | +53/−3744 lines, 35 filesdep +os-stringdep ~basePVP ok |
showing 5 of 35 versions
monadcryptorandom >=0 0.7.2 → 0.7.2.1
| 2018-04-11 15:56 UTC | 0.7.2.1 | +7/−5 lines, 1 filesdep ~exceptionsPVP ok |
| 2018-02-25 20:59 UTC | 0.7.2 | +2/−2 lines, 1 filesdep ~exceptionsPVP: major bump suggested |
| 2017-02-02 15:41 UTC | 0.7.1 | +33/−8 lines, 2 filesdep +exceptionsdep +transformers-compatdep ~mtlPVP ok |
| 2015-10-29 21:45 UTC | 0.7.0 | +24/−22 lines, 2 filesdep ~mtl |
| 2014-01-28 17:34 UTC | 0.6.1 | +2/−2 lines, 2 files |
showing 5 of 16 versions
transformers >=0 0.6.2.0 → 0.6.3.0
| 2026-01-12 12:42 UTC | 0.6.3.0 | +28/−1 lines, 4 filesPVP: major bump suggested |
| 2025-04-06 22:39 UTC | 0.6.2.0 | +41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested |
| 2024-09-25 11:37 UTC | 0.6.1.2 | +70/−21 lines, 19 filesPVP: minor bump suggested |
| 2023-08-01 19:13 UTC | 0.6.1.1 | +281/−42 lines, 11 filesPVP ok |
| 2023-02-04 08:15 UTC | 0.6.1.0 | +64/−4 lines, 8 filesPVP ok |
showing 5 of 42 versions
unix >=0 2.8.7.0 → 2.8.8.0
| 2025-09-23 08:10 UTC | 2.8.8.0 | +161/−207 lines, 6 filesdep ~basedep ~timePVP ok |
| 2025-05-10 14:12 UTC | 2.8.7.0 | +8400/−7941 lines, 12 filesdep ~basedep ~timePVP ok |
| 2024-11-19 15:41 UTC | 2.8.6.0 | +1133/−333 lines, 14 filesdep ~basedep ~timePVP: major bump suggested |
| 2024-04-08 19:21 UTC | 2.8.5.1 | +7507/−6738 lines, 5 filesdep ~basedep ~filepathdep ~os-stringPVP: major bump suggested |
| 2023-12-01 00:53 UTC | 2.8.5.0 | +55/−9 lines, 7 filesdep +os-stringdep ~filepathdep ~timePVP ok |
showing 5 of 34 versions
Reverse dependencies
1 packages depend on randfile