Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc]modify pmod radians random #1940

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

xiaozhuoyang
Copy link
Contributor

@xiaozhuoyang xiaozhuoyang commented Jan 24, 2025

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

## 描述

返回模运算 x mod y 在模系中的最小正数解。具体而言,通过计算 (x % y + y) % y 得出结果。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


- 不传参时:返回0-1之间的随机数。

- 传入单个参数`seed`时:根据传入的种子值`seed`,产生相同的随机数。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

`DOUBLE random()`
返回0-1之间的随机数。
```sql
RANDOM()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@KassieZ KassieZ added the has comments Some comments not resolved yet label Jan 24, 2025
Signed-off-by: leozhuo <[email protected]>
@morrySnow morrySnow requested review from KassieZ and removed request for wangtianyi2004 February 5, 2025 03:56
@KassieZ KassieZ added approved and removed request review has comments Some comments not resolved yet labels Feb 6, 2025
@KassieZ KassieZ merged commit 827329d into apache:master Feb 6, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants