This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import what you need | |
>>> from random import random, randrange | |
# https://docs.python.org/3/library/random.html#random.random | |
# Return the next random floating point number in the range [0.0, 1.0). | |
>>> random() | |
0.04458157505033977 | |
>>> random() | |
0.11730160701010572 | |
# range gives you a list/iterable depending in the Python version and is often used for iterations | |
# http://pythoncentral.io/pythons-range-function-explained |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SWIG | |
export SWIG_VERSION=4.0.2 | |
export SWIG_PREFIX=$HOME/install/swig | |
mkdir -p $SWIG_PREFIX | |
mkdir /tmp/swig/ | |
cd /tmp/swig/ | |
wget https://sourceforge.net/projects/swig/files/swig/swig-${SWIG_VERSION}/swig-${SWIG_VERSION}.tar.gz/download -O swig-${SWIG_VERSION}.tar.gz | |
tar xf swig-${SWIG_VERSION}.tar.gz | |
cd swig-${SWIG_VERSION} | |
./configure --prefix=$SWIG_PREFIX |