Have some list o fhg and would like to mix it to random all lines. How to do it in excel or any other tool?
Any script to mix randomly lines?
Collapse
X
-
if you want to invest a few bucks, icq: 33375924
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager -
Here is a php script to do it. Jace asked for a similar one some time ago, it might work for you. It outputs to the screen vs. saving another file, so copy/paste will be your friend
You can also remove the <br> in the echo statement and just save the output if that works better.
or,PHP Code:<?php $file = file("urls.txt"); // Strips dupes if you need, comment out if you do not need this $temp = array_unique($file); //Shuffles the deck or randomizes :) shuffle($temp); //Prints each line foreach($temp as $value) { echo "$value<br>"; } exit; ?>
Potter posted a way to do it in Excel or OpenOffice..
Sorry Woj, you hadn't posted yet when I started..You can also use open office. Paste all the items into a spreadsheet, then paste the random number char code into the column next to the urls, then sort by numbered column, copy the column with the urls and you're done.
I imagine Woj can do a lot better than this anyway, definitely worth looking intoComment
-
-
ThanksHere is a php script to do it. Jace asked for a similar one some time ago, it might work for you. It outputs to the screen vs. saving another file, so copy/paste will be your friend
You can also remove the <br> in the echo statement and just save the output if that works better.
or,PHP Code:<?php $file = file("urls.txt"); // Strips dupes if you need, comment out if you do not need this $temp = array_unique($file); //Shuffles the deck or randomizes :) shuffle($temp); //Prints each line foreach($temp as $value) { echo "$value<br>"; } exit; ?>
Potter posted a way to do it in Excel or OpenOffice..
Sorry Woj, you hadn't posted yet when I started..
I imagine Woj can do a lot better than this anyway, definitely worth looking into
Comment
-
FHG2HTML v.1.2.1
Here's a desktop tool:
FHG2HTML v.1.2.1
Import a list of your galleries and check the random button. It outputs html links.Comment
-
-
This is similar to at least one above, but it will allow you to specify how many links to show from the main list. In this example, 0 through 24 = 25:
You do not need to put a full URL in for the file, but I use this code on several sites to generate random lists from a single "master".Code:<?php $links=file("http://yourdomain.com/yourfile.html"); shuffle($links); $output = array_slice($links, 0, 24); foreach ($output as $a) { echo $a; } ?>Comment
-
-
I am not sure how PHP became the de facto language for all tasks, but here is alternative solution using Ruby.
Code:data=IO.readlines('urls.txt') new_data=data.sort_by {rand} output=File.open('output.txt','w') new_data.each do |line| output.puts line end output.closeIt's better when you can Switch.
ICQ: 263079754Comment
-
Comment
-
Comment


Comment