随机字母生成器
为文字游戏、课堂活动或起名随机选一个字母。可以只要一个字母、一串字母、只要元音或辅音,或者打乱整个字母表。
- A 到 Z
- 元音或辅音
- 打乱字母表
随机字母 API
以 JSON 获取随机字母结果。接口只读,少量使用无需 API 密钥,并支持跨域请求。
GET
/api/v1/tools/random-lettercurl https://randnext.com/api/v1/tools/random-letter?set=consonants&count=5&repeats=false参数
| 参数 | 类型 | 作用(英文) | 默认值 / 允许的值 |
|---|---|---|---|
count | integer | Number of letters to return. | 默认:11 到 100 |
set | string | Choose from the full alphabet, vowels only, or consonants only. | 默认:allall, vowels, consonants |
repeats | boolean | Allow the same letter to appear more than once. | 默认:truetrue 或 false |
lowercase | boolean | Return lowercase letters instead of uppercase letters. | 默认:falsetrue 或 false |
你可能还喜欢
使用方法
- 1选择字母数量和范围。
- 2点“生成”。
- 3复制结果。
常见问题
可以避免字母重复吗?
可以——关闭“允许重复”。这样最多可以抽出所选范围内的全部字母。
用的是哪种字母表?
26 个字母的英文字母表。