#191076 - 2008-12-12 11:48 PM
Re: Read a file and randomly pick entries
[Re: Gargoyle]
|
Willmaykett
Fresh Scripter
Registered: 2007-01-07
Posts: 21
|
Hi guys,
Wow, thanks for the tips. Would never have been able to do what I wanted in such a small amount of code.
Thanks guys, really appreciate it !
I ran the code from eriqjaffe and it worked a treat. What extra would I need to do so that if 3 entries existed in the file, and I picked 5, that all 3 entries will be used? Currently it throws an error about being out of bounds.
The code from Gargoyle threw an error all the time, and I think I worked out it was some syntax errors. But then it generated only a series of numbers, not a list of what was in the file. Further than that, I got stumped . 
Thanks heaps for your work so far!
Edited by Willmaykett (2008-12-13 01:00 AM)
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 530 anonymous users online.
|
|
|