Added random state information to sparsify and minibatch generation

This should make it possible for the user to set their own random state generator for their methods.