Importance sampling - Other languages