random function differently cause of problems running running it with jetty