   What is the most stuiped(thats intentionally, or maybe not) program you have written?
  A friend of mine bugged to write a program that would predict results.He thought that he could guess future random results by the previous results.I told him that its stuiped and you cant get better then 50% chance of guessing a toss of a coin based on previous results, but he is a very stubborn person.So I have written a program that would try to guess what are the future random results based on the past results.At first I made only a couple of hundreds attempts of guessing random results, so I got a bit above 0.5 correct guess. So he got excited, but then I did a couple of tens of thousands and then I got a closer result to 0.5.Anyway, it was really stuiped.So what are the stuiped programs you wrote?[Edited by - The C modest god on January 15, 2006 11:20:34 AM]
Quote:At first I made only a couple of hundreds attempts of guessing random results, so I got a bit above 0.5 correct guess. So he got excited, but then I did a couple of tens of thousands and then I got a closer result to 0.5.Well, if your friend was trying to guess your attempts to come up with random sequences of {0,1}, then he's not so far off the mark. Humans are terrible at generating random numbers.   ;  speaking of random numbers.once when i was a teen, i tried to make a compression algorthm based on seeding the a random number generator and searching for patterns in the random number stream, and then compress a file using Seed/Start offset/length. it didn't really work very well.   ;  A tuned down verson of the GNU find command (in that it only enumerated the subdirectories and their contents, without any additional options).Only 2 years later did I find find and felt pretty dumb.   ;  I've never really made any "stupid programs." Probably the closest thing to it is a routine that reverses a string for the sole purpose of writing backwards in #gamedev without having to do any work.def str_reverse(string):  l = list(string)  l.reverse()  return "".join(l);  I made a program to calculate the number of beer cans required to build a pyramid (actually a tetrahedron cos it was for a triangular arrangement instead of square) of a given height, specified in number of cans.   ;  I wrote a program to calculate the chances of Israel of making it into the next World Cup. It's stupid because Israel doesn't have any chances of making it into any World Cup.shmoove   ;  I've made a bunch of pointless eye-candy things before, useless, but still some what interesting when you're bored.   ;  My maze generator was interesting, but ultimately pointless.   ;  back in school, when the c++ teacher asked us to choose a semester end project, a guy came up with the idea to make a program that will ask the user to type in the numbers of cow legs, and then output the number of cows.   