Fixed the issue when Random function fails to convert the number due to the size of the decimal places.