Creation of random number through system fields

Hi ,
I like to create a random number generation program.(apart form system time) .
I have noticed  that system response time differs (minimal variation in terms of milliseconds) every time
when we execute a program .
In that case could i know how to get the  system response time and interpretation time from system fields in program !
Note : I like to know the table in which these values can be retrieved (like TRDIR for other system fields)

use these function modules.
QF05_RANDOM
RANDOM_AMOUNT.

Similar Messages

  • Which system field returns the number of records returned after a select?

    Which system field returns the number of records returned after a select?
    a) sy-index
    b) sy-recno
    c) sy-lncnt
    d) sy-dbcnt
    e) sy-tabix

    Hi,
       SY-DBCNT
    Regards,
    Prashant

  • How can I copy a number of like fields and paste to reduce form creation time?

    How can I copy a number of like fields and paste to reduce form creation time?

    Creating Form Fields by Ted Padova

  • How can I create a random number and letter in a text field...

    Hi All,
    I am using application express. I want to get a random number and letter for a text field but not sure how to do this. Say I have a licence form and I want to get the licence number automatically when user wants to create a new licence and it needs to be unique. The format I am looking for is - HQ2631 something like this.
    I am thinking I have to create a trigger but not sure how to go about this....
    advanced thanks,
    Tajuddin

    Something to play with:
    Your method can generate 26 * 26 * 10000 different licence_ids
    Generating one million ids takes 20 seconds but produces between 70000 and 80000 duplicates and is rapidly getting worse (if that is something over 7%, doubling the ids generated that grows to something under 30%)
    Just see if you can live with that.
    select sum(collisions) all_duplicates,count(*) distinct_duplicates,max(collisions) max_multiple
      from (select licence_id,count(*) - 1 collisions
              from (select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999)) licence_id
                      from dual
                     connect by level <= :to_generate
             group by licence_id
             having count(*) > 1
           )Regards
    Etbin

  • Updating a field that generates random number when form is reset..

    I have a field that will generate a random number when the form is initially opened. THis fiekd runs an initialization script of : var randomnumber=Math.floor(math.random()*99999) and then a calculation script of randomnumber.
    The field value is set as Calculated - Read Only.
    When I hit the Reset button and it clears all the input fields for the form i would like to have it re calculate a new random number. I am not knowledgable in any scripting language and what I have so far I found by searching the forums.
    Any help would be appreciated.
    Thanks

    I don't know if it should matter, but the field to update is on a page other than the one with the reset button. And, the above is not working.
    I tried it as you stated above fieldname.rawvalue=randomnumber and I tried pagename.fieldname.rawvalue=randomnumber

  • Generate random number and letter in a text field ...

    Hi All,
    I having a bit trouble when trying to generate random number and letter in application express in a text field. Say I have a licence form and when user wants to create a licence, it will provide a random licence number in the licence number field but it has to be unique. the number should be something like HQ2345. I was trying to set the following sql in default value for that text field but it is not working -
    select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999))
    from dual;
    any suggesion !!!!
    thanks

    Put this as default value for your text-item
    DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999))
    with type PL/SQL Expression. It have tested it and it works fine.
    DickDral

  • Generate Random Number in a Numberic Field

    Hello,
    I am wondering if there is a way to Generate a random number in a numeric Field or any other type?
    I am currently using LiveCycle Designer ES 8.2
    thanks,
    -Vargs

    Thanks for the post, I was researching further into what I wanted to do  and found this post
    http://www.acrobatusers.com/forums/aucb … ?pid=60135
    What  I want to do with this random number is generate it every time someone  opens a new form.  This form will be saved on a persons computer and  worked on.  So I don't want the number to change every time the file is  open, only when the form doesn't have a unique number already in it.
    I  believe the answer is the following but I am not sure if it will do the  task I want to perform. Here is the following code
    Quote from  the post by user Jonom:
    "Here's a script I've used on the  Initialize event of a form. It checks to see if it already has a value  and if so doesn't generate a new number in case people save the form and  reopen it:
    The number is unique to the second, so two people  would have to open the form at the same second to get the same value..."
    Code:
    if  (this.rawValue == null) {
        var d = new Date();
        //divide  result by 1000 to get seconds and round off
        this.rawValue =  parseInt(d / 1000);
    else {
        this.rawValue = rawValue;
    end  quote
    How  can I put in this code into a numeric field. I made a numeric field in  Livecycle Designer ES 8.2
    and tried to add in code but was not sure  which event to put it in or where exactly it should be placed.
    Thanks,
    -Vargs

  • List of system fields like sy-index, sy-srow......

    can any one give me list of system fields with there use. i would b very thankful.

    hi Amjad,
    Please find below the request fields, from table SYST.
    INDEX     Loops, number of current pass
    PAGNO     List creation, current page
    TABIX     Internal table, current line index
    TFILL     Internal tables, current number of lines
    TOCCU     Internal tables, initial main memory requirements
    DBCNT     DB operations, number of table lines processed
    FDPOS     Character strings, offset in character string
    COLNO     List creation, current column of list
    LINCT     List processing, page length of list
    LINNO     List creation, current line
    LINSZ     List creation, width of list
    MACOL     Print list, columns from SET MARGIN statement
    MAROW     List printing, lines from SET MARGIN statement
    TLENG     Internal tables, line width
    LILLI     List processing, current list line
    SUBRC     Return value, return value after ABAP statements
    CUCOL     Screens, horizontal cursor position at PAI
    CUROW     Screens, vertical cursor position at PAI
    LSIND     List processing, details list index
    LISTI     List processing, index of current list
    STEPL     Screens, current table line index
    SROWS     Screens, numbers of lines
    SCOLS     Screens, number of columns
    LOOPC     Screens, number of lines visible in table
    TZONE     Date and time, time difference from Greenwich Mean Time
    DAYST     Date and time, Daylight savings time flag
    FDAYW     Date and time, factory calendar weekday
    LANGU     R/3 System, current language
    MODNO     R/3 System, external modes index
    BATCH     Program running in background
    BINPT     Batch input, program running under batch input
    CALLD     ABAP program, ABAP program call mode
    DYNNR     ABAP program, number of current screen
    DYNGR     ABAP program, screen group of current screen
    WTITL     List creation, flag for standard page header
    CPAGE     List processing, current page number
    DBNAM     ABAP program, related logical database
    MANDT     R/3 System, client number from logon
    PEXPI     Print parameters, spool retention period
    PRIMM     Print parameters, print immediately
    PRREL     Print parameters, delete after printing
    PRBIG     Print parameters, selection cover page
    PRNEW     Print parameters, new spool request
    PDEST     Print parameters, output device
    PLIST     Print parameters, name of spool request
    PRDSN     Print parameters, name of spool dataset
    CALLR     Print list, ID for print dialog function
    RTITL     Print parameters, title of print program
    PRREC     Print parameters, recipient
    PRTXT     Print parameters, text for cover page
    PRABT     Print parameters, department on cover page
    PAART     Print parameters, print formatting
    PRCOP     Print parameters, number of copies
    DBSYS     R/3 System, name of central database system
    SYSID     R/3 System, name of R/3 System
    OPSYS     R/3 System, operating system of application server
    PFKEY     Screens, current GUI status
    SAPRL     R/3 System, system release
    TCODE     ABAP program, current transaction code
    UCOMM     Screens, function code triggered by PAI
    SPONO     Print list, spool number
    DATUM     Date and time, current (application server) date
    SLSET     Selection screens, name of variant
    UZEIT     Dat and time, current application server time
    REPID     ABAP program, current main program
    UNAME     R/3 System, user logon name
    LSTAT     List processing, list level IDs
    ABCDE     Constant: Alphabet (A,B,C,...)
    MSGLI     Messages, message line
    TITLE     Screens, title text
    LISEL     List processing, contents of selected line
    ULINE     Constants, horizontal line with length 255
    CPROG     ABAP program, caller in external procedures
    LDBPG     ABAP program, logical database program
    TVAR0     List creation, text variable for headers
    TVAR1     List creation, text variable for headers
    TVAR2     List creation, text variable for headers
    TVAR3     List creation, text variable for headers
    TVAR4     List creation, text variable for headers
    TVAR5     List creation, text variable for headers
    TVAR6     List creation, text variable for headers
    TVAR7     List creation, text variable for headers
    TVAR8     List creation, text variable for headers
    TVAR9     List creation, text variable for headers
    MSGID     Messages, message class
    MSGTY     Messages, message type
    MSGNO     Messages, message number
    MSGV1     Messages, message variables
    MSGV2     Messages, message variables
    MSGV3     Messages, message variables
    MSGV4     Messages, message variables
    VLINE     Constants, vertical bar
    STACO     List processing, initial column displayed
    STARO     List processing, first line displayed at top
    DATAR     Screens, display user entry
    HOST     R/3 System, Name of application server
    DATLO     Date and time, local date of user
    TIMLO     Date and time, local time for user
    ZONLO     Date and time, time zone of user
    Hope this helps,
    Sajan Joseph.

  • LIST OF SYSTEM FIELDS?

    CAN SOME ONE GIVE ME THE LIST OF SYSTEM FIELDS THAT WE CAN USE IN TEH PROGEAM.
    LIKE SY-DATUM...
    vj

    hi VJ,
    Please find below the request fields, from table SYST.
    INDEX     Loops, number of current pass
    PAGNO     List creation, current page
    TABIX     Internal table, current line index
    TFILL     Internal tables, current number of lines
    TOCCU     Internal tables, initial main memory requirements
    DBCNT     DB operations, number of table lines processed
    FDPOS     Character strings, offset in character string
    COLNO     List creation, current column of list
    LINCT     List processing, page length of list
    LINNO     List creation, current line
    LINSZ     List creation, width of list
    MACOL     Print list, columns from SET MARGIN statement
    MAROW     List printing, lines from SET MARGIN statement
    TLENG     Internal tables, line width
    LILLI     List processing, current list line
    SUBRC     Return value, return value after ABAP statements
    CUCOL     Screens, horizontal cursor position at PAI
    CUROW     Screens, vertical cursor position at PAI
    LSIND     List processing, details list index
    LISTI     List processing, index of current list
    STEPL     Screens, current table line index
    SROWS     Screens, numbers of lines
    SCOLS     Screens, number of columns
    LOOPC     Screens, number of lines visible in table
    TZONE     Date and time, time difference from Greenwich Mean Time
    DAYST     Date and time, Daylight savings time flag
    FDAYW     Date and time, factory calendar weekday
    LANGU     R/3 System, current language
    MODNO     R/3 System, external modes index
    BATCH     Program running in background
    BINPT     Batch input, program running under batch input
    CALLD     ABAP program, ABAP program call mode
    DYNNR     ABAP program, number of current screen
    DYNGR     ABAP program, screen group of current screen
    WTITL     List creation, flag for standard page header
    CPAGE     List processing, current page number
    DBNAM     ABAP program, related logical database
    MANDT     R/3 System, client number from logon
    PEXPI     Print parameters, spool retention period
    PRIMM     Print parameters, print immediately
    PRREL     Print parameters, delete after printing
    PRBIG     Print parameters, selection cover page
    PRNEW     Print parameters, new spool request
    PDEST     Print parameters, output device
    PLIST     Print parameters, name of spool request
    PRDSN     Print parameters, name of spool dataset
    CALLR     Print list, ID for print dialog function
    RTITL     Print parameters, title of print program
    PRREC     Print parameters, recipient
    PRTXT     Print parameters, text for cover page
    PRABT     Print parameters, department on cover page
    PAART     Print parameters, print formatting
    PRCOP     Print parameters, number of copies
    DBSYS     R/3 System, name of central database system
    SYSID     R/3 System, name of R/3 System
    OPSYS     R/3 System, operating system of application server
    PFKEY     Screens, current GUI status
    SAPRL     R/3 System, system release
    TCODE     ABAP program, current transaction code
    UCOMM     Screens, function code triggered by PAI
    SPONO     Print list, spool number
    DATUM     Date and time, current (application server) date
    SLSET     Selection screens, name of variant
    UZEIT     Dat and time, current application server time
    REPID     ABAP program, current main program
    UNAME     R/3 System, user logon name
    LSTAT     List processing, list level IDs
    ABCDE     Constant: Alphabet (A,B,C,...)
    MSGLI     Messages, message line
    TITLE     Screens, title text
    LISEL     List processing, contents of selected line
    ULINE     Constants, horizontal line with length 255
    CPROG     ABAP program, caller in external procedures
    LDBPG     ABAP program, logical database program
    TVAR0     List creation, text variable for headers
    TVAR1     List creation, text variable for headers
    TVAR2     List creation, text variable for headers
    TVAR3     List creation, text variable for headers
    TVAR4     List creation, text variable for headers
    TVAR5     List creation, text variable for headers
    TVAR6     List creation, text variable for headers
    TVAR7     List creation, text variable for headers
    TVAR8     List creation, text variable for headers
    TVAR9     List creation, text variable for headers
    MSGID     Messages, message class
    MSGTY     Messages, message type
    MSGNO     Messages, message number
    MSGV1     Messages, message variables
    MSGV2     Messages, message variables
    MSGV3     Messages, message variables
    MSGV4     Messages, message variables
    VLINE     Constants, vertical bar
    STACO     List processing, initial column displayed
    STARO     List processing, first line displayed at top
    DATAR     Screens, display user entry
    HOST     R/3 System, Name of application server
    DATLO     Date and time, local date of user
    TIMLO     Date and time, local time for user
    ZONLO     Date and time, time zone of user
    Hope this helps,
    Sajan Joseph.

  • Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV)

    Inbound Delivery creation in ECC6.0 through IDoc (DELVRY03.DESADV)
    From SCM ICH system Supplier creates ASN on the WEBUI & sends it ECC 6.0 using XI.
    This is Proxy (DespatchedDeliveryNotification) to IDOC (DELVRY03.DESAV) scenario
    But at the receiver end i.e. ECC6.0 its giving me error at Tcode WE02 as action is not supported.
    Can you suggest me how to tackle this issue.
    Thanks in Advance.
    Regards,
    N>B.Shanmukha

    hi,
    >>>giving me error at Tcode WE02 as action is not supported.
    there are many segments in delvry03 with a first field - action (like, delete, create, 001,002, etc)
    check all of them as probably you're using one which is not supported
    and this is the real cause of the error
    you can check it like this:
    open this IDOC in We19
    then open action field and F4 and see if the one you use in the idoc is in F4
    change the wrong one and it will work :for 100%
    Regards,
    Michal Krawczyk

  • BOM changes(Not creation) with EC Number

    Hi
    I want to make the ECN as mandatory while changing the BOM,not for creation.
    I tried by setting OS27,OS25 settings for BOM. I tried BOM creation with status 3(With history requirement). System gives only warning message,not the error message.(Message no. 29045)
    I tried to make the Change number field as mandatory,but it applies it to CS01 & CS02. I want only in CS02.
    Plse help me out if any knows the soultion.

    Dear Sudhar,
    1.Please check in OS27 - Tick mark is included for EC Management Active &
    BOM validity manitained and History Requirement.
    2.In OS25 - For History Requirement.
    3.Get the help from ABAP consultant,to make use of field exit for the particular
    screen CS02 ,which has got a screen number.The system will not allow the user
    to enter into the next screen unless that field is not filled.
    4.Check for the Auth.Object C_STUE_NOH
    With this Logic only we are using in my present project.
    Check & reply.
    Regards
    Mangal

  • How to define "leading" random number in Infoset fpr parallel processing

    Hello,
    in Bankanalyzer we use an Infoset which consists of a selection across 4 ODS tables to gather data.
    No matter which PACKNO fields we check or uncheck in the infoset definition screen (TA RSISET), the parallel frameworks always selects the same PACKNO field from one ODS table.
    Unfortunately, the table that is selected by the framework is not suitable, because our
    "leading" ODS table which holds most of our selection criteria is another one.
    How to "convince" the parallel framework to select our leading table for the specification
    of the PACKNO in addition (this would be times 20 faster due to better select options).
    We even tried to assign "alternate characteristics" to the packnos we do not liek to use,
    but it seems that note 999101 just fixes this for non-system-fields.
    But for the random number a diffrent form routine is used in /BA1/LF3_OBJ_INDEX_READF01
    fill_range_random instead of fill_range.
    Has anyone managed to assign the PACKNO of his choice to the infoset selection?
    How?
    Thanks in advance
    Volker

    Well, it is a bit more complicated
    ODS one, that the parallel framework selects for being the one to deliver the PACKNO
    is about equal in size (~120GB each) to ODS two which has two significant field which cuts down the
    amount of data to be retreived.
    Currently we execute the generated SQL in the best possible manner (by faking some stats )
    The problem is, that I'd like to have a Statement that has the PACKNO in the very same table.
    PACKNO is a generated random number esp. to be used for parallel processing.
    The job starts about 100 slaves
    Each slave gets a packet to be processed from the framework, which is internaly represented
    by a BETWEEN clause on this PACKNO. This is joined against ODS2 and then the selective fields
    can be compared resultin in 90% of the already fetched rowes can be discarded.
    Basicly it goes like
    select ...
    from
      ods1 T_00,
      ods2 T_01,
      ods3 T_02,
      ods4 T_03
    where
    ... some key equivalence join-conditions ...
    AND  T_00.PACKNO BETWEEN '000000' and '000050' -- very selective on T_00
    AND  T_01.TYPE = '202'  -- selective Value 10% on second table
    I'd trying to change this to
    AND  T_01.PACKNO BETWEEN '000000' and '000050'
    AND  T_01.TYPE = '202'  -- selective Value 10%
    so I can use a combined Index on T_01 (TYPE;PACKNO)
    This would be times 10 more selective on the driving table and due to the fact,
    that T_00 would be joined for just the rows I need, about a calculated time 20-30 faster.
    It really boosts when I do this in sqlplus
    Hope this clearyfies a bit.
    Problem is, that I can not change the code either for doing the
    build of the packets or the one that executes the application.
    I need to change the Inofset, so that the framework decides to build
    proper SQL with T_01.PACKNO instead of T_00.PACKNO.
    Thanks a lot
    Volker

  • Issue during Equipment Number through IE01

    Hi,
    When we create an Equipment Number through IE01, then An Asset number is also created with that...
    Now issue is that automatically created Asset Number Description, is picking as Company Code number... How can we change the Asset Number Description during Equipment Number generation...
    We don't want change description after Asset number generated through AS02...
    Please guide...

    HI
    Assignment of SHTXT(PM) to TXT50(AA) is also OK. However please check that the setting Specify Conditions for Synchronization of Master Data is set to synchronised or not.
    Please go through the documentation
    Assign Master Data Fields of Assets and Equipment
    Use
    In this IMG activity, you assign fields from Asset Accounting (FI-AA) to fields in Plant Maintenance (PM) for the synchronization of asset and equipment master data.
    If you made appropriate settings in the Specify Conditions for Synchronization of Master Data IMG activity, then for example, when you create an asset master record, the system automatically creates an equipment master record, and sychronizes the fields of the equipment master record, based on the field assignments.
    On the other hand, the system can also (depending on the settings you make) automatically create an asset master record when you create an equipment master record.
    Example
    You assign the cost center field of Asset Accounting to the cost center field of Plant Maintenance. When you create an asset, the cost center entered in the asset master record is automatically adopted in the equipment master record, which is created automatically.
    Standard settings
    SAP provides certain standard assignments for master data fields.
    Activities
    1. Deactivate assignments that you do not need. You can re-activate them easily at a later point if you need them, without having to set them up again.
    2. You can make additional field assignments, by choosing additional fields from Asset Accounting and assigning them to fields in Plant Maintenance. The available Asset Accounting fields are found in the SAAPM1 DDIC structure, while fields for Plant Maintenance are found in the SAAPM2 DDIC structure.
    3. Activate the assignments, if you have made new ones.
    If you want to make your own, even more specific assignments, you can create an enhancement project for customer exit AAPM0001. Using this project, you can add additional fields to the SAAPM1 and SAAPM2 structures, for which you can then make your assignments.
    Notes
    The system does not perform a check on the assignments you make. You have to check to ensure that the assignments you make are logical.
    For more information, refer to SAP Note 370884 (and possibly related SAP Notes).
    Shakti

  • VBScript Truly Random Number/Password Generators?

    So... I have a script that generates random passwords for use in a project in VBS.  The code used to generate the password is something that is very similar to this blog post: 
    http://blogs.msdn.com/b/gstemp/archive/2004/02/23/78434.aspx.  And considering every random-number generator in VBS that I was able to find appears to be based (at least, in part)
    off of this code, I'm looking for something that is reliable. 
    The above blog article basically states that the builtin Rnd and Randomize functions are not functionally secure for password generation because of the small number of "seeds" that vbscript has builtin to it's randomize/rnd functions.  And because of
    this small number of seeds, it's relatively easy to deduce the password because of it.  So ultimately, I'm asking to know if there is a reliable way to generate, "truly random" numbers that are secure enough for password values (through random number
    -> ANSI character translation)?
    The article talks about the Crypto API being able to generate truly random numbers but I wasn't able to find any documentation on how to access the Crypto API from VBS.  Can anyone provide any assistance on either of these two questions?  Thanks.

    @Richard
    The Rnd() function does not appear to be good enough for me.  I'm testing password generation on different machines at startup and writing those values to AD.  What I've seen is a preponderance of either "very close" or identical passwords from
    using this general code:
    Randomize
    rndNum = Int((122 - 33 + 1) * Rnd + 33)
    ...who's value gets converted to a character and appended to a string that gets repeated x times to generate a password.  To show you what spawned this entire thread, my computers (that are all running this at startup), are generating passwords that
    look like this:
    "ua*td"4poYAp=SlL
    #ua+td"4ppZBq>SlL
    #vb+ue#5qpZBr>TmM
    $wc-vf$6rq[Ds?UnN
    $wc-vf$6rq[Ds?UnN
    $wc-vf$6rr[Ds@UnN
    -%k5$n,>zzdL!H^vV
    %wd-vf%6sr\Ds@VoN
    &ye.xh&8ts]EtAWpP
    &ye/xh&8tt]FuBWpP
    (!g0zj(:vu_GwCYrR
    (!g0zj(:vu_HwCYrR
    )!g1zj(:vv`HwDZrR
    )!h1!k):wv`HwDZsS
    *"h2!k);wwaIxEZsS
    *"i2!k*;xwaIxE[tS
    *#i2"l*<xwaIyE[tT
    *#i3"l*<xxbJyF[tT
    *6"F5%=O11u]2Yo-g
    ,$j4#m+=yycKzG]uU
    ,%k5$n,>zycL!H]vV
    .'m6&p.@"!eM"I_xX
    /'n7&p/@#"fN#J`yX
    :2xB1!9K--qY.Uk)c
    :2xB1!9K--qY.Uk)c
    :2xB1!9K--qY.Uk)c
    :2yB1!9K.-qY.Uk)c
    :2yB1!9K.-qY.Uk)c
    :2yB2":K.-qY.Uk*d
    :3yC2":L..qZ/Vk*d
    :3yC2":L..qZ/Vk*d
    ;3yC2":L..rZ/Vl*d
    ;4zC3#;M/.rZ0Vl+e
    ;4zC3#;M/.rZ0Vl+e
    ;4zD3#;M/.r[0Vl+e
    ?7#G6&>P22v^3Zo.h
    ?7#G6&>P22v^3Zo.h
    ?7#G6&>P22v^3Zp.h
    ?7#G6&>P32v^3Zp.h
    ?7$G6&>P32v^3Zp.h
    ?7$G7'?P32v^3Zp/i
    ?8$G7'?Q32v^3Zp/i
    ?8$Gn^v.jjS<k8MfF
    ?8$H7'?Q32v_4Zp/i
    @8$H7'?Q33w_4[q/i
    @9%I8(@R43w`5[q0j
    @9%I8(@R44w`5\q0j
    [S?cRBZlNN8zOv2J*
    [S@cRB[lON8zOv2K*
    [S@cRBZlON8zOv2J*
    [T@cSC[mON8zPv2K+
    [T@cSC[mON8zPv2K+
    [T@dSC[mOO9!Pw2K+
    \kW!jZr*ffP8g4IbB
    \T@dSC[mOO9!Pw2K+
    \T@dSC[mOO9!Pw3K+
    \T@dSC[mOO9!Pw3K+
    \T@dSC[mOO9!Pw3K+
    \TAdSC[mPO9!Pw3L+
    \UAdTD\nPO9!Qw3L,
    \UAeTD\nPP:"Qx3L,
    ]UAeTD\nPP:"Qx4L,
    ]VBeUE]oQP:"Qx4M-
    ]VBfUE]oQP:#Rx4M-
    ^VBfUE]oQQ;#Ry4M-
    ^VCfUE]oRQ;#Ry5M-
    ^WCfVF^pRQ;#Ry5N.
    ^WCfVF^pRQ;#Ry5N.
    _WCgVF^pRR<$Sz5N.
    _WCgVF^pRR<$Sz5N.
    _WCgVF^pRR<$Sz6N.
    _WCgVF^pRR<$Sz6N.
    _XDhWG_qSS<%T!6O/
    `XEhWG_qTS=%T!7O/
    `YEhXH`rTS=%T!7P0
    `YEhXH`rTS=%U!7P0
    `YEhXH`rTS=%U!7P0
    `YEhXH`rTS=%U!7P0
    `YEhXH`rTS=&U!7P0
    `YEiXH`rTS=&U!7P0
    `YEiXH`rTS=&U!7P0
    `YEiXH`rTT=&U"7P0
    +#i3"l*<xxbJyF[tT
    +#i3"l*<xxbJyF[tT
    +$j3#m+=yxbJyF\uU
    +$j4#m+=yxbKzF\uU
    <4!D4$<M0/s[0Wm,f
    <4zD3#;M//s[0Wl+e
    <5!D4$<N0/s[0Wm,f
    <5!E4$<N0/s\1Wm,f
    =5!E4$<N00t\1Xm,f
    =5"E4$=N10t\1Xn-f
    =6"E5%=O10t\2Xn-g
    =6"E5%=O10t]2Xn-g
    =6"F5%=O11t]2Yn-g
    =6"F5%=O11t]2Yn-g
    >6"F5%=O11u]2Yn-g
    >6#F5%=O21u]2Yo-g
    >6#F5&>O21u]2Yo.g
    >7#F6&>P21u]2Yo.h
    >7#G6&>P21u^3Yo.h
    0(n8'q/A##gO$KayY
    0(n8'q/A##gO$KayY
    0(o8(r0A$#gO$KazZ
    0(o8'q/A$#gO$KayY
    0)o9(r0B$#gP%KazZ
    0)o9(r0B$#gP%KazZ
    0)o9(r0B$$gP%LazZ
    1)o9(r0B$$hP%LbzZ
    1)o9(r0B$$hP%LbzZ
    1*p:)s1C%$hQ&Lb![
    1*p:)s1C%%hQ&Mb![
    1*p9)s1C%$hQ&Lb![
    2*p:)s1C%%iQ&Mb![
    2+q:*t2D&%iQ&Mc"\
    2+q:*t2D&%iQ'Mc"\
    4,s<,v4E('kS(Oe$^
    4'm7&p.@"!eN#I_xX
    4-s<,v4F('kT)Oe$^
    5.t=-w5G)(lT)Pf%_
    5.t=-w5G)(lT*Pf%_
    5.t=-w5G)(lU*Pf%_
    5.t>-w5G))lU*Qf%_
    5.t>-w5G))lU*Qf%_
    5-s=,v4F((lT)Pe$^
    6.t>-w5G))mU*Qf%_
    6.t>-w5G))mU*Qg%_
    6/u?.x6H*)mV+Qg&`
    6/u?.x6H**mV+Rg&`
    6/u?.x6H**nV+Rg&`
    7/u?.x6H**nV+Rh&`
    70v?/y7I+*nV,Rh'a
    70v@/y7I+*nW,Rh'a
    70v@/y7I++nW,Sh'a
    81wA0z8J,,oX-Ti(b
    81wA0z8J,+oX-Si(b
    81wA0z8J,+oX-Si(b
    81wA0z8J,+oX-Si(b
    91wA0z8J,,pX-Tj(b
    91xA0z8J-,pX-Tj)b
    92xA1!9K-,pX.Tj)c
    92xA1!9K-,pX-Tj)c
    92xA1!9K-,pX-Tj)c
    92xB1!9K-,pY.Tj)c
    A:&I9)AS54x`5\r1k
    A:&I9)AS54x`6\r1k
    A9%I8(@R44x`5\q0j
    A9&I9)AR54x`5\r1j
    aYEiXH`rTT>&U"7P0
    aYEiXH`rTT>&U"7P0
    aYEiXH`rTT>&U"8P0
    aYEiXH`rTT>&U"8P0
    aYEiXH`rTT>&U"8P0
    aZFiYIasUT>&U"8Q1
    What you see above is a snippet of the passwords that each computer generates and writes to AD and then sorted through PowerShell to show the similarities/identicals.  I'm only running this on 300ish systems and they seem to be relatively close. 
    As you stated, I'm not sure if the number generators you provided (which were awesome btw) are necessary but unless I'm implementing the Randomize/Rnd functions completely wrong, these passwords seem to be WAY to close for comfort.  I think I'm going
    to try a variation of the GUID usage and run it for awhile to see how "frequent" passwords appear similarly:
    Low = 33
    High = 122
    For i=0 to 100
    WScript.Echo "END: " & GetRandomInt(Low,High)
    Next
    Function GetRandomInt(iLowPart,iHighpart)
    iLowPartLen = Len(iLowPart)
    iHighPartLen = Len(iHighPart)
    ' Loop through dynamically generated GUIDs until we find a string of characters that meet the criteria
    Do
    ' Generate a starting point to read out of a 32-bit GUID string
    Randomize
    iGuidLow = Int(((32 - 8) - 1 + 1) * Rnd + 1)
    ' Generate a GUID
    objGuid = CreateObject("Scriptlet.TypeLib").Guid
    ' Strip out the dashes and braces and pull an 8-character section of the GUID from the provided starting point
    strGuid = Mid(Replace(Replace(Replace(CStr(objGuid), "-", ""), "{", ""), "}", ""), iGuidLow, 8)
    ' Convert back to a number
    iGuid = Abs(CLng("&h" & strGuid))
    iGuidLen = Len(iGuid)
    ' Generate the span of characters to generate given the high/low vals
    Randomize
    iLengthVal = Int((iHighPartLen - iLowPartLen + 1) * Rnd + iLowPartLen)
    ' Loop through the GUID-fragment-converted-to-number to find a value between the given numeric span
    For iStartPos=1 to iGuidLen
    iSegment = CInt(Mid(iGuid, iStartPos, iLengthVal))
    If iSegment >= iLowPart And iSegment <= iHighPart Then
    Exit Do
    Else
    If iSegment > iHighPart Then
    Exit For
    End If
    End If
    Next
    Loop Until iStartPos > iGuidLen
    GetRandomInt = iSegment
    End Function

  • How to sort random number without the used of order by

    Hi ,
    how should 5 random number be sorted without the use of order by in PLSQL
    eg.
    id amount
    1 2
    2 9
    3 3
    4 5
    5 7
    Edited by: sake1 on 1-dec-2010 8:16

    I used Altavista and found one example, how does it look?
    DECLARE
      /* there is no built array in oracle, you must declare
      your own */
      TYPE Numarray IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      /* the array of numbers - using assoc array because I can start
      with zero like traditional arrays */
      Nums Numarray;
      n NUMBER := 0;
      Temp NUMBER;
    BEGIN
      /* load up the array, put 20 random values in the array,
      in array indicies 0 to 19 */
      FOR i IN 0 .. 19
       LOOP
        Nums(i) :=  Round(Dbms_Random.Value(1, 1000));
      END LOOP;
      /* get the array size */
      n :=  Nums.Count();
      /* display the unsorted values - loop through the whole array and
      print out the values */
      Dbms_Output.Put_Line('unsorted:');
      FOR i IN Nums.First .. Nums.Last LOOP
        Dbms_Output.Put_Line(Nums(i));
      END LOOP;
      /* bubble sort - using two loops, compare each value with the one
      after it
      if the one after the current one is smaller , then
      switch their locations in the array, this is just like standard
      bubble sorts
      in other languages. The only real diff is the syntax.
      FOR i IN 0 .. n - 1 LOOP
        FOR j IN 0 .. n - (i + 1) - 1 LOOP
          IF (Nums(j) > Nums(j + 1)) THEN
            Temp := Nums(j);
            Nums(j) :=  Nums(j + 1);
            Nums(j + 1) :=  Temp;
          END IF;
        END LOOP;
      END LOOP;
      /* display the values sorted */
      Dbms_Output.Put_Line('sorted');
      FOR i IN Nums.First .. Nums.Last LOOP
        Dbms_Output.Put_Line(Chr(9) || Nums(i));
      END LOOP;
    END;
    unsorted:
    155
    909
    795
    977
    942
    214
    105
    269
    283
    820
    108
    594
    784
    921
    856
    736
    802
    457
    951
    411
    sorted
         105
         108
         155
         214
         269
         283
         411
         457
         594
         736
         784
         795
         802
         820
         856
         909
         921
         942
         951
         977
    */In the code the first comment is wrong actually i think, that one:
    "there is no built array in oracle, you must declare your own"
    I remember there were some system collection-types, if i'm not mixing with something, i remember there was some kind of such but they were un-documented ones, so we can juridically say that the comment in the code was still correct.

Maybe you are looking for

  • Badi/user exit for tx vl02n

    Hi, I need to find a badi or a user exit thats triggered after pressing "save" in transaction vl02n. Help me please. Best regards, Roberto.

  • How to typecast the given attribute.

    Hi all, I am getting an error. I am using dropdownbyindex and using following code.     Iprivate<ur view name>.IEt_Fragen_output obj = wdcontect.nodeET_Fragen_output.creatEt_Fragen_outputelement();                List list1=new ArrayList();          

  • Transfer speed of USB vs Gigaport attached drive WRT610N

    I know this is a loaded question but here goes:  Assumptions:  eqivalent drive specs but one is connected to the USB port of a 610N and the other is connected to the gigaport of the 610N which drive should have the fastest throughput and approximatel

  • Returnable Packaging ...Third party subcontracting

    Hello SAP Eperts, This is third party subcontracting scenario but is for RTP material. 1. Import Vendor "A" will send material in returnable packaging RTP to plant "P" 3. Bank guarantee will be provided to return the RTP within 6 months. If not retur

  • MacBook Pro freeze/spinning wheel

    Hey everyone, Yesterday my MacBook Pro started behaving strangely. When I turn it on, it works (very slowly) for around 5-10 minutes, and then the applications freeze and the spinning wheel appears. If I click on anything else (finder, apple logo) at