Add some rand functions.