Raise ImportError when mtrand doesn't have required random functions & fix random gibbs test