Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Start lists at any position. Because you can!

Project description



Ever wonder why lists start at 0? Become the master of your own list objects and wonder no more! With RandomIndexList you’ll create arrays that start at whichever number you please, or let RandomIndexList’s state-of-the-art randomizer select a completely arbitrary starting index for you!


RandomIndexList has been tested on Python 3.4.0 and 2.7.14. Others versions are likely to work just as well, but it would be best to just completely avoid this package if you value your sanity.

Install via pip with pip install RandomIndexList


RandomIndexList extends Python’s built-in List class and can be used in the same manner.

If you like to live on the edge you can let RandomIndexList pick a starting index for you.

from RandomIndexList import RandomIndexList
my_list = RandomIndexList(range(0, 5))
>>> 55
>>> 1

If you have enough chaos in your life you can choose your own starting index.

my_list = RandomIndexList(range(0, 5), index=95)
>>> 2

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for RandomIndexList, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size RandomIndexList-0.3-py2-none-any.whl (1.8 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size RandomIndexList-0.3-py3-none-any.whl (1.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size RandomIndexList-0.3.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page