Log in

No account? Create an account
entries friends calendar profile It's Me Previous Previous Next Next
The Autobiography of Russell
Life from a different perspective
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 Mood: accomplished accomplished
Current Music: "The Way" by Dana Glover

Leave a comment