Is there any way to generate random number in CPO

Requirement : -
> I want  to generate a random number from set of 1-9 numbers .is there any way in cpo ?
Thanks
Siva

I created a process that uses 3 steps, all of which happen inside the engine rather than having to span out to a script, so it runs a lot faster.
Technically, it's pseudo-random...
Predefine Output Variable "Random Number" as type "Numeric"
Step 1:  Format Date
  Format string: fffffff 
    (that's seven lower-case letters "f")
  Original date: [Process.Start Time]
Step 2: Format Date
  Format string: ff\0\0\0\0\0
  Original date: [Process Start Time]
Step 3: Set Variable
  Variable to update: [Process.Variables.Output.Random Number]
  New value: ([Workflow.Format Date.Formatted Date]-[Workflow.Format Date (2).Formatted Date])/100000
This returns a basically random number between 0 and 1 (so you can mulitply it by your maximum value) based on the numeric fraction of a second of the start time of the process.

Similar Messages

  • Is there any way to generate Gantt chart by using oracle 9iDS?

    Is there any way to generate Gantt chart by using oracle 9i reports builder
    Can you please send me the link or more information on oracle 9iDS.
    Thanks

    Hi,
    Oracle9iDS itself doesn't support creating Gantt charts. The option oyu have is to use Oracle Graphics 6i, because there is no Graphics in 9i, and configure it to run with Oracle9i Forms. There exist a whitepaper at otn.oracle.com/products/forms that explains how to make Graphics 6i work with Forms 9i.
    Frank

  • Is there any way to link page number with the reference page number within text in InDesign CC and CS6?

    Is there any way to link page number with the reference page number within text in InDesign CC and CS6?

    You should ask in InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Are there any ways to get sequence number other than getting it for each re

    are there any ways to get sequence number other than getting it for each record

    CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
    Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
    Cheers, APC
    SQL> create sequence seq cache 3
      2  /
    Sequence created.
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              1
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             1
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             2
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             3
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             4
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              7
    SQL>

  • Someone had my apple id password and bought a game from the App Store. I've changed my password but is there any way to find he number it was downloaded to?

    Someone had my apple id password and bought a game from the App Store. I've changed my password but is there any way to find he number it was downloaded to?

    Contact iTunes support

  • Is there any way to limit the number of Threads running in Application(JVM)

    Hello all,
    is there any way to limit the number of Threads running in Application(JVM)?
    how to ensure that only 100 Threads are running in an Application?
    Thanks
    Mohamed Javeed

    You should definitely use a thread pool for this. You can specify maximum number of threads that can be run. Be note that the thread pool will only limit the number of threads that are submitted to it. So donot call "Thread"s start() method to start thread on your own. Submit it to the pool. To know more, study about executor service and thread pool creation. Actually it will not be more than 20 line code for a class and you might need maximum of 2 such classes, one for threadPool and other one for rejection handler (if you want).
    Just choose the queue used carefully, you just have to pass it as a parameter to the pool.
    You should use "Bounded" queue for limiting threads, but also be careful in using queues like SynchronizedQueue as the queue will execute immediately the threads submitted to it if maximum number of threads have not been running. Otherwise it will reject it and you should use rejection handler. So if your pool has a synchronized queue of size 100, if you submit 101th thread, it will be rejected and is not executed.
    If you want some kind of waiting mechanism, use something like LinkedBlockingQueue. What this will do is even if you want 100 threads, you can specify the queue's size to be 1000, so that you can submit 1000 threads, only 100 will run at a time and the remaining will wait in the queue. They will be executed when each thread already executing will complete. Rejection occurs only when the queue oveflows.

  • My iphone is stolen .. is there any way to know the numbe of the person going to use in the future .. I have the serial no. and every thing .. and it is registered under my name and my information with iTunes ??

    my iphone is stolen .. is there any way to know the numbe of the person going to use in the future .. I have the serial no. and every thing .. and it is registered under my name and my information with iTunes ??

    If you had find my iphone activated on the iphone itself before it was stolen, then you may be able to track it.
    Otherwise, there is nothing you can do.
    Sorry.
    Report it to the police and your wireless carrier and change your password.

  • Is there any way to edit phone number hyperlinks received in SMS messages prior to calling them?

    Just got a new iPhone 4s for work.  I receive text messages from an answering service containing phone numbers to return calls.  On my Windows smartphone, when I clicked the hyperlink for the phone number, it gave me the option to edit the number (for example, to add an area code prefix or *67 to block my number) prior to dialing.  Is there any way to do this on the iPhone 4s

    If not part of your iPhone backup, they are gone.

  • Is there any way to block a number?

    I am getting frequent calls from  tele-marketers, including text message and would like to block these calls.  Isa there any way to do this?  I have an Android 2 Global.  Thanks for your help.

        SkyHawk44, I know how irritating telemarketing calls can be. I recommend that you add your mobile number to the Do Not Call List by clicking https://www.donotcall.gov/
    Additionally, you may also block 10 digit phone numbers to the Call & Messaging Block list online at My Verizon, as well. This feature allows you to block up to five numbers from calling and text messaging your device. For more information, click http://bit.ly/MqEgqB ^LH

  • Is there any way to limit the number of RFC calls from xMII to SAP R/3

    Hi All!
    I wanted to know whether the number of simultaneous RFC connections made from xMII to SAP R/3 system can be controlled in any way. Suppose we have a scenario wherein some million Sales Orders or Production Orders are to be updated in SAP R/3 from xMII in a short span of time. For all these updations to take place, multiple RFC calls will be established from xMII to SAP at the same time. This will increase the load on the SAP R/3 system and affect performance of the SAP R/3 system. Is there any check on xMII side to limit the number of RFC calls that can be made to SAP R/3 system?
    Regards
    Anupam

    Anupam,
    If you are using 11.5 just keep in mind that the JCO connection points to a single application server (based upon the SAP Server alias connection settings), but the traffic itself to make a BAPI request is effectively the same as any client user traffic.  There will obviously be limitations on performance and throughput, with network and server constraints added to the number and size of the R/3 requests, but there is no magic formula to plug-in because of all of these variables.
    If you are using 12.0 (or plan to migrate when it goes GA) then taking advantage of the JRA (java resource adapter) and the associated application server pooling that it offers on the NetWeaver side of things will greatly help you in the throughput capacity.
    If you have put some of your xMII application into either test or productive use and are running into issues then I would highly recommend entering the specifics into the customer / partner support portal so that they can help you through any associated problems.
    Regards,
    Jeremy Good

  • Is there any way to limit the number of times that a PDF can be opened?

    I run a small publishing company and we want to provide exam copies of our books to professors.  At present our exam copies have the words EXAM COPY as a water mark on every page and we've also made the files so that they can't be printed or easily copied.  However, we'd like to also restrict these PDFs so that they can only be opened 5 times.  I've read about FileOpen but that approach seems a bit more complex than needed.  Is there any other way to restrict the number of times that a PDF file can be opened once it is downloaded?  Thanks in advance for any suggestions.

    DRM soltions like FileOpen are your best bet for PDFs. Others include Adobe's LiveCycle Rights Managment, LockLizard, Armjisoft PDF Security OwnerGuard, etc.
    They all work and are priced differently, but there's really nothing for what you want to do that is both simpler and secure.

  • Is there any way to increase the number of codecs supported in FCE?

    Hi all - does anyone know if there is a way to allow FCE to natively edit more codecs than are listed in the default sequence settings? I use FCPro and have been encouraging folks at my University to use FCE for intermediate editing. I just found out that many formats supported in FCP are not supported in FCE.
    Are there any plug-ins or anything we can buy to increase the types of files that FCE will support (in a sequence without rendering)?
    Follow up: if not, can anyone tell me the specifics of the 720p30 AIC format that FCE uses?
    Apple Intermediate Codec
    1280x720
    30fps progressive?
    bitrate?
    audio sampling rate?
    It seems odd to me that FCE has such a limited number of formats it supports natively. And why isn't ProRes 422 a part of FCE? I thought that was their big thing now - HD wihtout taking up all the real estate that AIC does.
    Thanks. I'm frustrated with both iMovie and FCE and wishing that Sony Vegas worked on Macs!

    Hi(Bonjour)!
    Well FCE is a stripped down version of FCP, for a fraction of the price. It was aimed to produce TV content in TV native resolution.
    In the past years, HDV and AVCDHD were added through AIC codec.
    For most of FCE users (from the beginner to intermediate video editors)those formats are adequate.
    To have access to native HDV or to Apple ProRes 422, you have to buy Final Cut Studio 2. All those codecs will be available in FCE export with quickitme conversion settings.
    Michel boissonneault

  • Is there any way to generate table of contents in adobe for a report output

    Hi All,
    I need to display the output of a report in an PDF and layout needs to be developed in Adobe Print Forms. I want to know if there is a way to generate a table of contents for the output in adobe form on a particular page.
    Thanks...

    Hi,
    Thanks for the reply. I am new to the adobe and to the javascript.
    I would appreciate if you can guide me as to where can I get the online help on javascript related to Adobe Print and Interactive Forms.

  • Is there any way to generate pdf from an xml file using single java class

    i m working on generating a pdf file from an xml file. i want to use only a single java class to do so. if theres any such code available please help me to find out.
    Thanks
    Gurpreet Singh

    exactly,
    here are some libraries which are open sources;
    http://java-source.net/open-source/pdf-libraries hope it's useful. :D

  • Is there any way to block a number from sending you an imessage?

    I want to block someone from sending me an imessage.  Is there a way?
    Thanks.

    Sorry, no. Only by turning iMessage off.

Maybe you are looking for