city angles

main
Bob Mottram 2021-05-10 16:58:52 +01:00
parent 339de3ad69
commit 0b5574369c
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ def _getCityPulse(currTimeOfDay, decoySeed: int) -> (float, float):
else: else:
dataDecoyState = "party" dataDecoyState = "party"
dataDecoyIndex = 5 dataDecoyIndex = 5
randgen2 = random.Random(decoySeed + dataDecoyIndex)
angleRadians = \ angleRadians = \
(randgen.randint(0, 100000 - 5 + dataDecoyIndex) / 100000) * \ (randgen2.randint(0, 100000) / 100000) * 2 * math.pi
2 * math.pi
# some people are quite random, others have more predictable habits # some people are quite random, others have more predictable habits
decoyRandomness = randgen.randint(1, 3) decoyRandomness = randgen.randint(1, 3)
# occasionally throw in a wildcard to keep the machine learning guessing # occasionally throw in a wildcard to keep the machine learning guessing