Made random stuff inline

They are small enough to inline.