Time-resolved observation of discrete and continuous magnetohydrodynamic dynamo in the reversed-field pinch edge.