uniform sampling on input and slider for level