BSD Ports

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

SystemPortVersion
MidnightBSDmath/py-random21.0.1_1
FreeBSDmath/py-random21.0.2
DragonFlymath/py-random21.0.1_1

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

Configuration

No options to configure.

USES
python zip
Service scripts
none

Files

distinfo 1
FileSizeSHA256
random2-1.0.1.zip2108834ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007
Master sites 1
  • PYPI