skyl/beatlounge — comment on commit c371009bf982cc77baf8c778cccbded4ad76fc36
File: bl/utils.py line 39
By skyl:

like

percindex(.5, [1,2,3]) => 2
percindex(.01, [1,2,3]) => 1

so, you can index the list with a float between 0 and 1.