April 16th, 2006

Ctrl+Alt+Del - Scott & Ted

PHP Class: Random Exclusion aka rand_exclude()

I got a little carried away while responding to an entry in php by shamess_the_elf about generating a random number from x to z but excluding y. An example function was shown for further critique so I remade it. Someone critiqued my function so, in response, I got carried away. I ended up remaking it as a class with a function wrapper.

Random_Exclusion class aka rand_exclude() (plain source)

Ok, off to bed. I just dozed off a couple of minutes ago while trying to write this entry.
  • Current Music
    "The Way" by Dana Glover