Add rand class.