fixed custom library methods, added library methods for randomRange with and without params