mixgen with strictly specified length