Constrained randomization of dynamic arrays.

Only constraints on length works for now. Still to work on foreach
construct for array randomization.