rfun function

Randomly draws from a one-dimensional KDE