Partial Random Sprite Support

Got an off-by-one somewhere but the basics are there.