Random methods extended.