Inverse transform sampling - Other languages