SAP ABAP Class CL_ABAP_RANDOM_PACKED (CL_ABAP_RANDOM_PACKED)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷
SABP_RANDOM (Package) Random Number Generator
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_SERIALIZABLE_OBJECT | Serializable Object | 20030714 |
Properties
| Class | CL_ABAP_RANDOM_PACKED | |
| Short Description | ||
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | S | System Program |
| Category | 0 | |
| Package | SABP_RANDOM | Random Number Generator |
| Created | 20030714 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_SERIALIZABLE_OBJECT | Serializable Object | 20030714 |
Friends
Class CL_ABAP_RANDOM_PACKED has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | P31_0 | 20030715 | ||||
| 2 | Instance attribute | Protected | Type reference (TYPE) | P31_0 | 20030715 | ||||
| 3 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20030714 | ||||
| 4 | Constant | Protected | Type reference (TYPE) | ABAP_BOOL | SPACE | Truth Value: FALSE | 20030715 | ||
| 5 | Instance attribute | Protected | Type reference (TYPE) | P31_0 | Upper Interval Limit | 20030715 | |||
| 6 | Constant | Protected | Type reference (TYPE) | P31_0 | 9999999999999999999999999999999 | Maximum Packed Value | 20030715 | ||
| 7 | Instance attribute | Protected | Type reference (TYPE) | P31_0 | Lower Interval Limit | 20030715 | |||
| 8 | Instance attribute | Protected | Type reference (TYPE) | P31_0 | -9999999999999999999999999999999 | Minumum Packed Value | 20030715 | ||
| 9 | Instance attribute | Protected | Object reference (TYPE REF TO) | CL_ABAP_RANDOM | Pseudo Random Number Generator | 20030715 | |||
| 10 | Constant | Protected | Type reference (TYPE) | ABAP_BOOL | 'X' | Truth Value: TRUE | 20030715 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | CONSTRUCTOR | 20030714 | |
| 2 | Static method | Public | Method | Create a PRNG for packed numbers | 20030714 | |
| 3 | Instance method | Public | Method | Next "Packed" Pseudo Random Number in [min,max] | 20030714 |
Events
Class CL_ABAP_RANDOM_PACKED has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | P31_0 | Public | Type reference (TYPE) | CL_ABAP_RANDOM=>P31_0 | Data Type: Packed, 31 Characters, no Decimal Places | 20030714 | |
Method Signatures
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | MAX | Call by reference | Type reference (TYPE) | P31_0 | 20030714 | ||||
| 2 | MIN | Call by reference | Type reference (TYPE) | P31_0 | 20030714 | ||||
| 3 | SEED | Call by reference | Type reference (TYPE) | I | 20030714 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CL_ABAP_RANDOM* | 20030714 |
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | MAX | Call by reference | Type reference (TYPE) | P31_0 | 9999999999999999999999999999999 | Obere Grenze für Wertebereich | 20030714 | ||
| 2 | MIN | Call by reference | Type reference (TYPE) | P31_0 | -9999999999999999999999999999999 | Untere Grenze für Wertebereich | 20030714 | ||
| 3 | PRNG | Value transfer | Object reference (TYPE REF TO) | CL_ABAP_RANDOM_PACKED | Zufallszahlengenerator-Objekt | 20030714 | |||
| 4 | SEED | Call by reference | Type reference (TYPE) | I | Initialwert des PRNGs | 20030714 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CL_ABAP_RANDOM* | 20030714 |
Method GET_NEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | VALUE | Value transfer | Type reference (TYPE) | P31_0 | Pseudozufallszahl | 20030714 |
Method GET_NEXT on class CL_ABAP_RANDOM_PACKED has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 640 |