SAP ABAP Class CL_UPG_PSEUDORANDOM (Fast generator for pseudorandom numbers)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-UPG-TLS-TLA (Application Component) Upgrade Tools for ABAP
⤷
SAUS (Package) Transport Control (Repository Switch)

⤷

⤷

Properties
Class | CL_UPG_PSEUDORANDOM | |
Short Description | Fast generator for pseudorandom numbers | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SAUS | Transport Control (Repository Switch) |
Created | 20121009 | SAP |
Last change | 20140120 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_UPG_PSEUDORANDOM has no forward declaration.
Interfaces
Class CL_UPG_PSEUDORANDOM has no interface implemented.
Friends
Class CL_UPG_PSEUDORANDOM has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Instance attribute | Private | See coding | State of first MwC algorithm | 20121009 | |||
2 | ![]() |
Instance attribute | Private | See coding | State of second MwC algorithm | 20121009 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Constructor | Constructor, you can give optional seeds for both states | 20121009 |
2 | ![]() |
Instance method | Public | Method | Returns a random chunk of 32 bits | 20121009 |
3 | ![]() |
Instance method | Public | Method | Returns a random alphabetic string (A to Z) | 20121010 |
4 | ![]() |
Instance method | Public | Method | Returns a random NUMC string (0 to 9) | 20121009 |
5 | ![]() |
Instance method | Public | Method | Returns a random alphanumeric string (0 to 9, A to Z) | 20121010 |
6 | ![]() |
Instance method | Public | Method | Returns a random alphanumeric string (0 to 9, A to Z) | 20121011 |
Events
Class CL_UPG_PSEUDORANDOM has no event.
Types
Class CL_UPG_PSEUDORANDOM has no local type.
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_SEED1 | Call by reference | Type reference (TYPE) | INT4 | Optional seed for first state | 20121009 | ||
2 | ![]() |
IV_SEED2 | Call by reference | Type reference (TYPE) | INT4 | Optional seed for second state | 20121009 |
Method CONSTRUCTOR on class CL_UPG_PSEUDORANDOM has no exception.
Method GET_RANDOM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
RV_RAW | Value transfer | Type reference (TYPE) | RAW4 | Raw random 32 bit chunk | 20121009 |
Method GET_RANDOM on class CL_UPG_PSEUDORANDOM has no exception.
Method GET_RANDOM_LETTERS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_LENGTH | Call by reference | Type reference (TYPE) | INT4 | Desired length of string | 20121010 | ||
2 | ![]() |
RV_STRING | Value transfer | Type reference (TYPE) | STRING | Random result string | 20121010 |
Method GET_RANDOM_LETTERS on class CL_UPG_PSEUDORANDOM has no exception.
Method GET_RANDOM_NUMC Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_LENGTH | Call by reference | Type reference (TYPE) | INT4 | Desired length of string | 20121009 | ||
2 | ![]() |
RV_STRING | Value transfer | Type reference (TYPE) | STRING | Random result string | 20121009 |
Method GET_RANDOM_NUMC on class CL_UPG_PSEUDORANDOM has no exception.
Method GET_RANDOM_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_LENGTH | Call by reference | Type reference (TYPE) | INT4 | Desired length of string | 20121010 | ||
2 | ![]() |
RV_STRING | Value transfer | Type reference (TYPE) | STRING | Random result string | 20121010 |
Method GET_RANDOM_STRING on class CL_UPG_PSEUDORANDOM has no exception.
Method GET_RANDOM_XSTRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_LENGTH | Call by reference | Type reference (TYPE) | INT4 | Desired length of string | 20121011 | ||
2 | ![]() |
RV_XSTRING | Value transfer | Type reference (TYPE) | XSTRING | Random result binary string | 20121011 |
Method GET_RANDOM_XSTRING on class CL_UPG_PSEUDORANDOM has no exception.
History
Last changed by/on | SAP | 20140120 |
SAP Release Created in | 740 |