randomizer with trigonometric distribution