I cannot believe this tutorial has such a high rating. It is absolutely appalling. The code in the example has clearly been copied and pasted (...badly) and erroneously weights the "random" characters generated, giving a false random string as a result. And don't get me started on the uselessness that is trying to pick a number from "12345678901234567890123456789012345678901234567890", as if having more copies of 1234567890 makes the function more random...
Avoid this tutorial (and the website it is on) like the plague.
- By:
- MrDooom
Apr 7th, 2008 at 11:54 AMI cannot believe this tutorial has such a high rating. It is absolutely appalling. The code in the example has clearly been copied and pasted (...badly) and erroneously weights the "random" characters generated, giving a false random string as a result. And don't get me started on the uselessness that is trying to pick a number from "12345678901234567890123456789012345678901234567890", as if having more copies of 1234567890 makes the function more random...
Avoid this tutorial (and the website it is on) like the plague.