Internal: Added random number generator method along with a method for populating a block. Also deleted unnecessary code.