changeset 11:24971c82b835

Make stock market more pessimistic
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 01 Mar 2019 16:42:02 +0100
parents a071454b1739
children f092f8324486
files server/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/server/server.py	Fri Mar 01 16:33:03 2019 +0100
+++ b/server/server.py	Fri Mar 01 16:42:02 2019 +0100
@@ -41,7 +41,7 @@
         def next_price(self):
             """Calculates a (random) next price based on the current price and history. Returns a dict suitable for inclusion in a _stockdata object."""
             dev = 0.02 * self._current_value or 1
-            new_value = int(_random.normalvariate(self._current_value * 1.001, dev))
+            new_value = int(_random.normalvariate(self._current_value * 1.0001, dev))
             new_value = abs(new_value)
             split = False