Start lists at any position. Because you can!
Project description
RandomIndexList
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!
Installation
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
Usage
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))
my_list.index
>>> 55
my_list[56]
>>> 1
If you have enough chaos in your life you can choose your own starting index.
my_list = RandomIndexList(range(0, 5), index=95)
my_list[97]
>>> 2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RandomIndexList-0.3.tar.gz.
File metadata
- Download URL: RandomIndexList-0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
692c588580ee3ebc2bdc86c914fc0b7e94401c757dc652f0918d0449f9565326
|
|
| MD5 |
fd7928cee7b76ef32da02ecf62a30eb5
|
|
| BLAKE2b-256 |
7cdaa64e5c6ed779ac5a06cb5bfe4f0acb40bad36ba64bcbda8a659c3df0cd92
|
File details
Details for the file RandomIndexList-0.3-py3-none-any.whl.
File metadata
- Download URL: RandomIndexList-0.3-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c452e22d367f8d701f40d9661398a7e7b3b4a02340c1b41a91411d089da9b2a7
|
|
| MD5 |
fd354d89bf2515e4725ca01c0c51d279
|
|
| BLAKE2b-256 |
690cf6eaf3e8b0140371a7bf120c91e2772be1698df98e229f1c1cc2c6f3a081
|
File details
Details for the file RandomIndexList-0.3-py2-none-any.whl.
File metadata
- Download URL: RandomIndexList-0.3-py2-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05eb867d946bbeb0f877fd8ff816be457243f0c9bbb06667ca4183b7a8afafd
|
|
| MD5 |
3c77c63eeec3696f645267e1d57d6d39
|
|
| BLAKE2b-256 |
2a5be7a9698d86c66f88eeb6119541e1e880baae586b1118d8da348ddde50098
|