View Single Post
Old 01-02-2007, 09:49 PM   #9 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 614
+0 Internets
Send a message via AIM to Zippygoose
You could also pass in "top" "middle" "bottom" which would then randomly cut the deck within the passed criteria.

i.e., passing "top" would cut the deck randomly between 0 and 20, middle between 21 and 32, etc. etc.

I liked the idea of an overloaded method simply because it introduces the idea to people who might not be familiar with it.

Edit: Posting solution soon, had to tweak cut method to account for overloads.

Last edited by Zippygoose : 01-02-2007 at 10:20 PM.
Zippygoose is offline   Reply With Quote

 
Uberguilds Network