All Products
Search
Document Center

Key Management Service:GenerateRandom

Last Updated:Aug 10, 2023

Generates a random number.

Request parameters

Parameter

Type

Required

Example

Description

Length

int32

Yes

32

The length of the random number to generate.

Valid values: 1 to 64.

Response parameters

Parameter

Type

Example

Description

Random

bytes

Binary data

The random number.

RequestId

string

475f1620-b9d3-4d35-b5c6-3fbdd941423d

The request ID.

Error codes

For more information about error codes, see Common error codes.