diff --git a/mosiac.py b/mosiac.py index b812040..f14aea4 100755 --- a/mosiac.py +++ b/mosiac.py @@ -5,7 +5,6 @@ Does mosiacs. """ import os import time -import random import colorsys import threading @@ -145,7 +144,7 @@ class Mosiac(): tol += int(tol == 0) indexs = dist.argsort()[:tol] # choice = dist.argmin() # closet value - choice = random.choice(indexs) + choice = np.random.choice(indexs) return cluster[tuple(nodes[choice])]