Refactored generate functions using random.sample
Added mix_language