Randomization function - Other languages