On Building Random Variables of a Given Distribution