public void run() { for (int i=0; i<10; i++) { stock.put(nombre,i); try { sleep((int) Math.random()*100); } catch (InterruptedException e){} } }