English
Fx.random
About 234 wordsLess than 1 minute
2026-01-09
Summary
The overview of this document is as follows: This document introduces the API definitions of Fx.random, usage methods, and related notes.
1. nextInt randomly generates any integer
Fx.random.nextInt()
Code examples
Fx.random.nextInt()
//integer value2. nextInt randomly generates any non-negative integer less than the bound
Generate a random non-negative integer less than the specified bound
Fx.random.nextInt(<Integer bound>)
Request parameters
Request Body
| Parameter Name | Type | Description | Required |
|---|---|---|---|
| bound | Integer | Must be a positive number | Y |
Code examples
Fx.random.nextInt(10)3. randomUUID generates a random UUID
Generate random UUID
Fx.random.randomUUID()
Code examples
String str = Fx.random.randomUUID()
log.info(str)Notice
- Generate format as: 8-4-4-4-12
Changelog
| Version | Date | Changes | Author |
|---|---|---|---|
| v1.0 | 2026-05-20 | Initial version |
Background
This document provides detailed information about the Fx.random API functionality and usage, helping developers integrate relevant capabilities.
Applicable Scenarios
Specific applicable scenarios are determined by actual business needs. Developers can select the appropriate API for integration as required.
Prerequisites
- Access to Fxiaoke Open Platform
- Application authorization and configuration completed
- Basic knowledge of relevant business domain
Steps
Please refer to the detailed instructions for each API.
Notes
- Ensure prerequisites are met before calling APIs
- Pay attention to API call frequency limits
- Refer to error code documentation for exception handling
Compatibility note: This version currently has no deprecated or compatibility notes.
