Commit d6cea298 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Message generation

parent 87914ee3
...@@ -10,7 +10,7 @@ stream = redis.Redis(host=host, port=port, db=0) ...@@ -10,7 +10,7 @@ stream = redis.Redis(host=host, port=port, db=0)
me = socket.gethostname() me = socket.gethostname()
i = 1 i = 1
while True: while True:
msg = f"Hi, this is the message #{ i } from { me }." msg = f"Hi, this is message #{ i } from { me }."
i = i + 1 i = i + 1
n = random.randint(1, 3) n = random.randint(1, 3)
time.sleep(n) time.sleep(n)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment