diff --git a/ejercicios_hilos/ej02.py b/ejercicios_hilos/ej02.py index 253e321..b31d53e 100644 --- a/ejercicios_hilos/ej02.py +++ b/ejercicios_hilos/ej02.py @@ -1,10 +1,12 @@ import threading import time +import random def escribePunto(): for i in range(100): print (".", end="",flush=True) - time.sleep(0.1) + # time.sleep(0.1) + random.uniform(0.1, 0.2) return print ("INICIO") @@ -13,4 +15,5 @@ t.start() for i in range(50): print ("-", end="",flush=True) - time.sleep(0.2) \ No newline at end of file + # time.sleep(0.2) + random.uniform(0.2, 0.3) \ No newline at end of file