Good Evening Golfers!
Your challenge is to completely unsort a series of numbers.
Input
Exactly 100 integers will be fed to your program. Your program may accept the input either as a file, or via stdin. Each integer will be separated by a newline character.
Those 100 integers will range from the minimal to the maximal values of a signed integer in your chosen language.
There will be no duplicate values. The values may be ordered, unordered or partially ordered - your program should be able to handle each case.
Output
The output must be each of the 100 integers, completely unsorted, each separated by a newline character. The output may be via stdout, or to a file.
Completely Unsorted means that no value is adjacent to any value which it would be adjacent to if the list were completely sorted in an ordered sequence.
Score
Pure code-golf. 1 point per character, and lowest score wins. There is a bonus of -100 for any solution using no built in or library sorting functions. There is a bonus of -20 for any solutions using no built in random number functions.
I have tried to define this question as completely as possible. If you have any questions, please ask. If you have any comments on how I could do better next time, please let me know.
Fore!
no value is adjacent to any value which it would be adjacent to if the list were completely sorted in an ordered sequenceWhat is the expected output if every input number is the same, or a large enough number are to make this impossible? – Strigoides Oct 24 '12 at 8:49