Retrieving a line at random from a file

License: Freeware
Date Added: 11 January, 2013
Category: Scripts / Others
Author: activestate.com

This procedure reads through a file of unknown size once, returning a random line from the file.


Advertisements



 

This procedure reads through a file of unknown size once, returning a random line from the file.


Operating Systems:  Python, Windows, Linux, BSD, Solaris, Mac OS


Retrieving a line at random from a file Related Downloads
 
Download Doctester for your documentation 1.2

Doctester for your documentation 1.2  The doctester extracts code from stdin and tests it using the doctest module in the standard library. It can be invoked from the command line, but it is best called from you editor of choice.

Download TEA GTK2 1.7.3.5

TEA GTK2 1.7.3.5  TEA is the GTK2-based text editor for Linux and *BSD. With an ultimate small size TEA provides you hundreds of functions.TEA depends on GTK 2.4 (or higher) and, optionally, on Aspell.

Download Indices of a SubString in a Given String 1.1

Indices of a SubString in a Given String 1.1  This script uses string.index(sub) function which returns a list of indices of ALL occurances of a substring in the string.

Download DeskDeco 1.4.2

DeskDeco 1.4.2  Once you set up DeskDeco, let it automatically select your desktop wallpaper anytime you want it to. Select a set of pictures, how you want them displayed, and the interval between each change.

Download RNDGen 1.2

RNDGen 1.2  True random generator for Delphi and C++ Builder

Download RandomFill 1.1

RandomFill 1.1  RandomFill scans folders and/or playlists for mp3s (giving more or less weight to specified folders) and randomly selects up to a specified size or playing time. It then either creates a playlist or copies the mp3s to your portable player.

Download Tiny Shredder 1.2

Tiny Shredder 1.2  Tiny Shredder will completely erase files from your disk, without the possibility to recover it by any practical software or hardware methods.

Download Data Recall - Free Alternative to Info Keep 1.0

Data Recall - Free Alternative to Info Keep 1.0  Data Recall is Windows-based application that will easily and securely store of all of your critical data.

Download ABC FOREX 8.05

ABC FOREX 8.05  Pricemotion forex and stock educational trading games, free forex and stock exercises and forex forum. Learn technical analysis - triple screen trading Forex Market Educational Trading Game. Pricemotion gives you the chance to learn how the stock

Others Popular Downloads
 
Download mvnForum .2GA 1.0

mvnForum .2GA 1.0  mvnForum is an open source, powerful, easy to use, easy to setup bulletin board (forum) built on the Java J2EE technology (Jsp/Servlet). mvnForum is compatible with any Servlet Containers which supports Jsp 1.2 and Servlet 2.3.

Download Aardvark Topsites PHP 5.2.0

Aardvark Topsites PHP 5.2.0  Aardvark Topsites PHP has a ton of features. I'm not going to bore you with all the inane details, but here is a list of the main features. - Members ranks can be shown on their button.

Download Guestbook class 1.0

Guestbook class 1.0  This class is meant to manage a guest book storing its records either in XML files database or in a SQL database. Currently it supports only MySQL databases.

Download Php Board Script 6.4.3

Php Board Script 6.4.3  Php Board Script allows you to create a simple discussion forum. It is made in Php, without My SQL, which on each server or Webspace is installed in well 5 minutes.

Download m-phorum 0.3

m-phorum 0.3  m-phorum is a new small phorum, using PHP with one mysql database backend. Tested on php 4.3, apache 1.3.27 & mysql 3.23.52. It is simple and fast.

Download PDF::Reader 1.0

PDF::Reader 1.0  The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe.

Download CMS Mini 0.2.2

CMS Mini 0.2.2  CMS Mini is a very small PHP application for manage content for small web sites. Not intended for a cooperative group of editors and rewiers: simply one editor can insert new contents, immediatly pubblished on web: "one task, one click".

Download guest-magic 0.1.2

guest-magic 0.1.2  guest-magic is a friendly tool for the rapid provisioning of Xen Guest Domains. It is written in Python with a pyGTK/Glade based user interface for maximum user friendliness. The code can be easily ported across many operating systems.

Download Radiance Message Board System 1.0

Radiance Message Board System 1.0  Radiance Message Board System script is a message boards coded in Ruby using mod_ruby and MiniBase.

Submit Reviews for Retrieving a line at random from a file
- required fields