updated build
modified func rand()