Date: Sun, 9 Feb 2003 13:46:54 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Sean Chittenden <seanc@FreeBSD.org> Cc: audit@FreeBSD.org Subject: Re: Making random(6) actually useful... Message-ID: <20030209124654.GA35137@falcon.midgard.homeip.net> In-Reply-To: <20030209104727.GO15936@perrin.int.nxad.com> References: <20030209104727.GO15936@perrin.int.nxad.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 09, 2003 at 02:47:27AM -0800, Sean Chittenden wrote:
> There isn't much useful functionality that I'm aware of that comes out
> of random(6) as its implemented currently. What I was originally out
> to do was to randomize the search order of dist sites for
> ports/packages and didn't find anything that did what I wanted and was
> BSD licensed (or small). The new random(6) functionality allows for:
>
> 1) randomizing the order of downloads from a mirrors list. For
> example, in a Makefile:
>
> DOWNLOAD_SITES= `echo -n "${MASTER_SITE_RUBY} "| random -wf -`
> DOWNLOAD_SITES+= MASTER_SITE_LOCAL
>
> 2) randomizing playlists for MP3s:
>
> find ~/mp3s -name '*.mp3' | random -f - > play_list.m3u
Have you looked at misc/shuffle from the ports collection? It seems to
do what you want, is small and is BSD-licensed.
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030209124654.GA35137>
