Added method rand to the db.Active.