math/py-random2 1.0.1_1 MidnightBSD
Python 3 compatible Python 2 random module
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- python
- Categories
- math, python
Description
Provides a Python 3 ported version of Python 2.7's 'random' module. It has also been back-ported to work in Python 2.6.
In Python 3, the implementation of randrange() was changed, so that even with the same seed you get different sequences in Python 2 and 3. Note that several high-level functions such as randint() and choice() use randrange().
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | math/py-random2 | 1.0.1_1 |
| FreeBSD | math/py-random2 | 1.0.2 |
| DragonFly | math/py-random2 | 1.0.1_1 |
| HardenedBSD | math/py-random2 | 1.0.2 |
| GhostBSD | math/py-random2 | 1.0.2 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}random2
From mports:
cd /usr/mports/math/py-random2 && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}random2>0:math/py-random2
Dependencies
Required by 2
Configuration
No options to configure.
- USES
- python zip
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| random2-1.0.1.zip | 21088 | 34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007 |
Master sites 1
- PYPI