wangtianyi2004 commented on code in PR #1940:
URL: https://github.com/apache/doris-website/pull/1940#discussion_r1928339059


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/pmod.md:
##########
@@ -22,34 +22,76 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## pmod
-
 ## 描述
+
+返回模运算 x mod y 在模系中的最小正数解。具体而言,通过计算 (x % y + y) % y 得出结果。

Review Comment:
   将具体而言改成即
   即通过计算 (x % y + y) % y 得出结果。
   



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/random.md:
##########
@@ -22,58 +22,76 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## random
-
 ## 描述
+
+返回0-1之间的随机数,或者根据参数返回需要的随机数。
+
+- 注意:所有参数必须为常量。
+
+## 别名
+
+- RAND
+
 ## 语法
 
-`DOUBLE random()`
-返回0-1之间的随机数。
+```sql
+RANDOM()

Review Comment:
   RANDOM()   -- 返回 0-1 之间的随机数
   这里还是建议把注释放在后面
   



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/random.md:
##########
@@ -22,58 +22,76 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-## random
-
 ## 描述
+
+返回0-1之间的随机数,或者根据参数返回需要的随机数。
+
+- 注意:所有参数必须为常量。
+
+## 别名
+
+- RAND
+
 ## 语法
 
-`DOUBLE random()`
-返回0-1之间的随机数。
+```sql
+RANDOM()
 
-`DOUBLE random(DOUBLE seed)`
-返回0-1之间的随机数,以`seed`作为种子。
+RANDOM(<seed>)
 
-`BIGINT random(BIGINT a, BIGINT b)`
-返回a-b之间的随机数,a必须小于b。
+RANDOM(<a> , <b>)
+```
 
-别名:`rand`
+## 参数
 
-注意:所有参数必须为常量。
+| 参数 | 说明 |
+| -- | -- |
+| `<seed>` | 随机数生成器的种子值 根据种子值返回固定的随机数 |
+| `<a>` | 随机数的下限 |
+| `<b>` | 随机数的上限 必须小于下限 |
+
+## 返回值
+
+- 不传参时:返回0-1之间的随机数。
+
+- 传入单个参数`seed`时:根据传入的种子值`seed`,产生相同的随机数。

Review Comment:
   说明返回 0-1 之间的随机数
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to