Math Forum
http://mathforum.org/kb
List of forum topicsenRe: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8385904&tstart=0#8385904
> Block[{i = RandomInteger[{1, n}], str = OpenRead[file], res}, > Skip[str, "String", i]; > res =]]>Feb 21, 2013 5:46:04 AMFeb 21, 2013 5:46:04 AMdana01@icloud.com0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8383413&tstart=0#8383413
>Thank you so much for the reply. My files are]]>Feb 20, 2013 10:26:29 PMFeb 20, 2013 10:26:29 PMreadnews@sbcglobal.net0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8374827&tstart=0#8374827
> Thank you so much for the reply. My files are 50MB each, I don't think ReadList]]>Feb 19, 2013 6:52:32 PMFeb 19, 2013 6:52:32 PMdave@removedbailey.co.uk0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8374826&tstart=0#8374826
> Thank you so much for the reply. My files are 50MB each, I don't > think ReadList would work for my]]>Feb 19, 2013 6:52:15 PMFeb 19, 2013 6:52:15 PMawnl@gmx-topmail.de0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8374821&tstart=0#8374821
the file(s) into memory, e.g. with ReadList. If you do a disk access for]]>Feb 19, 2013 6:51:48 PMFeb 19, 2013 6:51:48 PMkjm@KevinMcCann.com0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8368498&tstart=0#8368498
Feb 19, 2013 1:09:52 AMFeb 19, 2013 1:09:52 AMramiro.barrantes@gmail.com3Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8368496&tstart=0#8368496
> Am 17.02.2013 10:08, schrieb David Bailey: >> On]]>Feb 19, 2013 1:09:36 AMFeb 19, 2013 1:09:36 AMdave@removedbailey.co.uk0Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8359499&tstart=0#8359499
> On 16/02/2013 06:07, Ramiro Barrantes wrote: Feb 18, 2013 5:59:31 AMFeb 18, 2013 5:59:31 AMawnl@gmx-topmail.de1Re: Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8351874&tstart=0#8351874
> Hello, > > I would like to get a random line from a file, I]]>Feb 17, 2013 4:08:27 AMFeb 17, 2013 4:08:27 AMdave@removedbailey.co.uk6Obtaining Random LIne from A file
http://mathforum.org/kb/thread.jspa?messageID=8344441&tstart=0#8344441
Hello,

I would like to get a random line from a file, I know this can be done with Mathematica but I am playing with using sed to see]]>Feb 16, 2013 1:07:57 AMFeb 16, 2013 1:07:57 AMrbarrant@uvm.edu9