Fixed range input

Fixed range input so the experiment runs for the correct number of
samples. Was off by 1.