So you may be asking? Didn't you do this one already? Short answer, yes in PHP. This is a javascript example to show why javascript isn't best for everything in the world. This script has an interesting flaw while trying to create 2, non-repeating numbers 1-10. What is this error you might ask? Very occassionally, it will echo, 3 variables, a X,1,0. What does this mean? Realisically, nothing other than JavaScript sucks at creating random numbers. But what if say this where a random quote generator?
Quick answer, it will dump quote number 1 and then the number zero. Great isn't it? Not really. A quite simple example of JavaScript rearing its own limitations.
So one thing that always drove me mad was trying to come up with multiple without repeating numbers. Many solutions you'll find online are rather complex and not very straight forward. I wrote this script as I felt many programmers and designers might want a rather simple solution.
Tired of visiting Craigslist every 10 minutes to see what the latest posts are? I made this program to parse out 6 feeds at once for whichever catagories you deem most useful. I set the defaults for the Houston area.
This script finds the margins from 0 to 99 percent based on a set cost in USD. I found that it's fairly accurate, although the numbers get a bit obsurd around the 90 percentile. Even though this script is XHTML compliant, the W3C validator will not mark it as compliant. Why? The validator is broken on forms compliance.
Well, it's a quote generator that spits out a set quote based on a randomly drawn number. I prefer to use the Mersenne Twister method as I feel it gives better random results.