Ansicht
Dokumentation
ABENRANDOM_NUMBER_CLASS - RANDOM NUMBER CLASS
rdisp/max_wprun_time - Maximum work process run time General Data in Customer MasterThis documentation is copyright by SAP AG.
Random Numbers
The class CL_ABAP_RANDOM calls the pseudo random number generator Mersenne Twister for different numeric types.
For the one-dimensional case, the following special classes generate random numbers for the different numeric types:
- CL_ABAP_RANDOM_INT for type i
- CL_ABAP_RANDOM_INT8 for type int8
- CL_ABAP_RANDOM_FLOAT for type f
- CL_ABAP_RANDOM_PACKED for type p
- CL_ABAP_RANDOM_PACKED_DEC1 to CL_ABAP_RANDOM_PACKED_DEC14 for type p with 1 to 14 decimal places.
- CL_ABAP_RANDOM_DECFLOAT16 for type decfloat16
- CL_ABAP_RANDOM_DECFLOAT34 for type decfloat34
Example
Creation of a pseudo random number of the type i between 1 and 100, initialized by the system time.
BAL Application Log Documentation Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 2784 Date: 20240329 Time: 062757 sap01-206 ( 29 ms )