Dimensions Of Statistically Self-Affine Functions And Random Cantor Sets