inverse transform sampling as fallback