Added some rand methods. Simplify drawflags property