Remove trailing whitespaces from latest patch. - annna - Annna the nice friendl… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit a56f51236bcd791f59022b03cb5660ad1133e340 | |
parent 797a554e1506581b04f9164496fd1e561a6e20ce | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Thu, 8 Aug 2019 21:45:30 +0200 | |
Remove trailing whitespaces from latest patch. | |
Diffstat: | |
M modules/markov_tech/README | 6 +++--- | |
M modules/markov_tech/markov | 4 ++-- | |
2 files changed, 5 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/modules/markov_tech/README b/modules/markov_tech/README | |
@@ -1,9 +1,9 @@ | |
A simple shell script that implements a generator of technologies | |
-using an unbiased Markov chain. | |
+using an unbiased Markov chain. | |
-The chain produces phrases containing at least two technologies. | |
+The chain produces phrases containing at least two technologies. | |
Then, the probability to include N technologies with N>2 decreases | |
as 1/(FREW)^(N-2), where FREQ is a parameter of the script "markov". | |
-Please check the BASE variable, which should point to the folder where | |
+Please check the BASE variable, which should point to the folder where | |
the script `markov` and the associated files are contained. | |
diff --git a/modules/markov_tech/markov b/modules/markov_tech/markov | |
@@ -10,11 +10,11 @@ FREQ=2 | |
## function | |
rand(){ | |
max="$1" | |
- if [ -z "$max" -o "$max" -lt 1 ]; then | |
+ if [ -z "$max" -o "$max" -lt 1 ]; then | |
max=2; | |
fi | |
r=$(echo "$(od -An -N2 -i /dev/urandom) % $max" | bc) | |
- echo "$r" | |
+ echo "$r" | |
} | |