Fixed random value in two function scripts.