rfun function

Generate a natural-looking function