Generating random numbers with format 18XX88YYYYY

I've been tryig to generate random numbers with
format 18xx88yyyyy
here
18, followed by two random number then 88 followed by five random number. Here 18 and 88 are set to place one, two, five and sixth position.

but I am unable to get the logic.

So please help


Thanx

Achyot

Try this:

SELECT    '18'
       || ROUND (DBMS_RANDOM.VALUE (1, 100))
       || '88'
       || ROUND (DBMS_RANDOM.VALUE (1, 100000))
  FROM DUAL

- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev a. (10g OCP)
http://kamranagayev.WordPress.com

Tags: Database

Similar Questions

  • How to generate random numbers from 1 to 5

    How to generate random numbers from 1 to 5

    -1110340081

    Thank you I ended up

  • How LabVIEW can generate random numbers according to any pdf or histogram?

    I would like to know if there is a VI that generates a set of random numbers according to any probability density, the probability mass function or the graph histogram (this without explicitly knowing the function).

    Thank you.

    Acoustic wrote:

    I would like to know if there is a VI that generates a set of random numbers according to any probability density, the probability mass function or the graph histogram (this without explicitly knowing the function).

    If you have a given arbitrary distribution, you can simulate random data of thesholding mapping in the integral standard service with a simple random number 0... 1.

    This old post of mine should show you the General procedure and more details. (Is there even an former example). Of course, make sure that the desired function is all positive, of course.

  • Generate random int with no recurrence

    Hi all

    I want to shuffle playlist and using random as possible to repeat some index of value as

    Generating random integers in the range 1..10.
    Generated : 9
    Generated : 3
    Generated : 3
    Generated : 9
    Generated : 4
    Generated : 1
    Generated : 3
    Generated : 9
    Generated : 10
    Generated : 10
    

    How to do it like this

    Generate random integers in the range 1.10.

    Generating random integers in the range 1..10.
    Generated : 9
    Generated : 1
    Generated : 3
    Generated : 8
    Generated : 4
    Generated : 2
    Generated : 5
    Generated : 7
    Generated : 10
    Generated : 6
    

    Please help me

    use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/util/IntVector.html
    instead of vector.

    Remember that the numbers in the vector are the track numbers, you don't have to add anything unless you want to reset, you simply delete the number of the piece.

  • Generate random numbers in BPEL

    I have a use case that requires I generate a random number of 2 digits, something similar to "math: random * 100. I noticed that this feature is not readily available in the SOA Composite Editor. Can anyone suggest how this can be done?

    [code]

    "targetNamespace ="http://xmlns.oracle.com/KIMServices/embedded_java/BPELProcess1"

    "xmlns ="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

    "xmlns:client ="http://xmlns.oracle.com/KIMServices/embedded_java/BPELProcess1"

    "xmlns:ORA ="http://schemas.oracle.com/xpath/extension"

    "xmlns:bpelx ="http://schemas.oracle.com/bpel/extension"

    "xmlns:bpws ="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

    "xmlns:bpel2 ="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

    "container ="http://www.w3.org/2001/XMLSchema"

    "xmlns:XP20 ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"

    "xmlns:oraext ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"

    "xmlns:kimbpel ="http://xml.ibridge.nl/nl/rsg/kim/bpel"

    "xmlns:DVM ="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"

    "xmlns:HWF ="http://xmlns.oracle.com/bpel/workflow/xpath"

    "xmlns:IDS ="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"

    "xmlns:BPM ="http://xmlns.oracle.com/bpmn20/extensions"

    "xmlns:XDK ="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"

    "xmlns:XREF ="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"

    xmlns:LDAP ="http://schemas.oracle.com/xpath/extension/ldap" >. "

    Language = "java" >

    try {}

    Random random = new Random();

    int abc = random.nextInt (100);

    setVariableData ("NombrAl", abc);

    }

    end generate random number java

    [[catch (Exception e) {}]] >

    Query = "" / client: processResponse / client: result "/ >"

    [/ code]

    That should do it

  • Generator of random numbers with Page break

    Hello

    I was wondering if it is possible to write a JavaScript script that will:

    -generating a random number

    -When a random number is generated, a specific page in the document is loaded.

    For example, when 4 is generated, from 1 to 6, you would jump to page 10, when 5 is built, you

    jump to page 20, etc.

    The idea is that when you press the key which is linked this javascript, you will automatically be

    go to a random page.

    This would be possible at all?

    Thank you!

    Kind regards

    Fabian

    It is possible, but your description is not very clear. What is the relationship between the random number and the page you jump to? Why not just generate a random number between 1 and N (N being the number of pages in the file), and then go to this number?

  • generator of random numbers with conditions?

    Hiya,

    I'm pretty new to Flash so this can be a very easy fix for someone who knows what they are doing...

    Here is my code...

    the idea is that the player clicks on a button to look out the window and then a 4 options arise randomly, he'll be CHARGED 5 points of energy for the privilege.

    LOOKING OUT WINDOW - this section works fine...

    trainWINDOW.addEventListener (MouseEvent.CLICK, windowcheck);

    function windowcheck(event:MouseEvent):void
    {
    updateScoreENERGY();
    }
    function updateScoreENERGY (): void
    {
    If (scoreENERGY < 5) {}
    WINDOWRESULT.text = ' YOU ARE TOO TIRED to DRAG YOURELF until THE WINDOW";} m:System.NET.SocketAddress.ToString ().
    on the other

    scoreENERGY-= 5;
    randomzombieforcast();
    energycptext. Text = scoreENERGY.toString ();
    }

    the section above works fine, I don't think that the 'randomzombieforcast' function works


    I think the problem starts here...

    function randomzombieforcast()
    {
    var Results:Number is Math.floor (Math.random () * 4) + 1;.
    return results ;}

    {If (results == 1)
    WINDOWRESULT.text = "there are only a few zombies around (day light)"m:System.NET.SocketAddress.ToString ();
    If (results == 2)
    WINDOWRESULT.text = "there are a certain number of zombies hidden nearby (average day)"m:System.NET.SocketAddress.ToString (); ".
    If (results is 3)
    WINDOWRESULT.text = ' there are a lot of zombies LURKING in your street (day) "(heavy) m:System.NET.SocketAddress.ToString;»
    If (results is 4)
    WINDOWRESULT.text = "I wouldn't look for if I were you! (Revelation) "m:System.NET.SocketAddress.ToString (;})

    Any help at all would be greatly appreciated

    Thank you!

    Try...

    function randomzombieforcast()
    {
    var Results:Number is Math.floor (Math.random () * 4) + 1;.

    If (results == 1) {}
    WINDOWRESULT.text = "there are only a few zombies autour (day light);

    } Else if (results == 2) {}
    WINDOWRESULT.text = "there are a number of hidden nearby zombies (medium day);"
    } Else if (results == 3) {}
    WINDOWRESULT.text = ' there are a lot of zombies in your street TAPI (heavy day);
    } Else if (results == 4) {}
    WINDOWRESULT.text = "I wouldn't look for if I were you! (apocalypse) » :

    }

    }

  • slide show code generating random images with clickable links

    I make a slide show with images that occur randomly wch hav clickable links, OK it works but sometimes, the transition is very fast instead of the 8 s interval I expected, when I discovered the exit trace(), I noticed that sometimes the timer is triggered two times or more at the same time... my code is below... What perhaps may cause well u want to help

    I have 21 pictures with 21 images

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;

    Import fl.transitions.TweenEvent;

    import flash.events.MouseEvent;

    Stop();   slide stops

    var total_images:Number = 21;

    var my_playback_counter:Number = 0;

    showslide();     call to the showslide function

    defination function with the timer event

    function showslide (): void {}

    var myTimer:Timer = new Timer (8000);

    myTimer.addEventListener (TimerEvent.TIMER, timerListener);

    myTimer.start ();

    }

    / * function timelistener

    After 8 s, meter reading in increments of 1.

    Then reset to 0 playbckcounter if it is equal to total images

    */

    function timerListener (e:TimerEvent): void {}

    my_playback_counter = my_playback_counter + 1;

    If (my_playback_counter == total_images) {}

    my_playback_counter = 0;

    }

    trace ("Timer is triggered"); trace when the timer goes off

    NextImage();

    }

    function NextImage (): void {}

    var pic_number:Number = 21;

    var randomframe:Number = Math.ceil (Math.random () * pic_number) ;// randomly generates betwwen number 1 and 5

    trace (randomframe);

    gotoAndStop (randomframe); display a random image

    }

    Button1.addEventListener (MouseEvent.CLICK, onMouseClickB1);

    function onMouseClickB1(e:MouseEvent):void {}

    var request: URLRequest = new URLRequest ("http://www.aginternetwork.org/en/");

    navigateToURL (request, "_blank");

    }

    new Tween(btn1,"alpha",None.easeOut,0,1,1,true);

    Each time the playhead returns to frame where this code is another instance of Timer will be created.  Try to put a conditional on the showslide function call so that he will not repeat...

    var showStarted:Boolean; by assigning not it is null or false

    {if(!showStarted)}

    showslide()

    showStarted = true; but once they assign remains true

    }

  • Generate random numbers when the pdf file is opened

    I tried to write a script that generates a random 12-digit number when the PDF opens.  I need the number appears in a certain read only field on the pdf file.  I tried write the script in the script of the document and have failed.  (The number random and another part of the document will be used to extract information from it at a later date.)  Can someone help me with a script so that I can make this possible?

    Do you want a new random number whenever the file is opened? If Yes, enter

    Copy the following code as a script at the level of the document (not inside a function!):

    this.getField("fieldname").value =.

    Math.Floor (Math.Random () * Math.Pow (10,12));

  • Restrict negative numbers with Format mask

    Hello

    Is it possible to limit the negative numbers by using the format mask.


    Rgds


    sexy

    Hello

    Have you tried setting the smallest value allowed to 0?

    Arun-

  • Generate random numbers

    Hi all

    I searched the forum and have understood, there are many ideas generation random number, however I have another question, better explained by the attachment.

    I want to have output unique.

    your contributions are appreciated.

    I have not seen your code because I use LV2009 but I think the attached vi will want you want.

    Ben64

  • How the random numbers will be generated

    The "dice" in LabVIEW function is ised to generate random numbers between 0 and 1. If I create a [100000] array with random numbers between 0 and 100, the appearance of 1 to 100 is the same (about 1000 times each), but the appearance of the 0 is only 500.

    So my question is, on the basis of which will be generated random numbers?

    Mitu salvation,

    It is not a problem of the RNG, it's a problem of your function rounded!

    "To U8" allows you to convert the entire random DBL. ToU8 rounds up to the next integer. So all the number of 0-0.5 will get rounded to 0, but all the numbers from 0.5 to 1.5 will get rounded to 1. If you have twice the range of a number rounded to 1 at the beach of rounding to zero - the same goes for your "end of range" with rounding to 100. 100 should be also less likelihood (in your VI) to appear...

    To get the same probability, you should (explicitly) roundpupils before converting in U8!

    BTW. You can also search the forum to get the same answer by searching for "random"...

  • Generating unique random number with a Boolean signal on an RT target

    Hello, this is my first time asking your question. I apologize if I post this question in the wrong Council.

    [What I'm trying to do]

    I am stable heating and cooling in an experimental space that I (with cRio9024).

    And I'm putting a different experimental condition in space based on the function 'random number '.

    'Different experimental conditions' sense different combinations of Tind, Twat_s and mdot (refer to the attached VI).

    For example, if I get the Boolean TRUE signal.

    I should have a set of [Tind, Twat_s, mdot] = [21,14,0.05], and IS this set of numbers until this Boolean signal goes to FALSE.

    And when the signal passes to the TRUE once again.

    I should have a different set of [Tind, Twat_s, mdot] = [24,16,0.15] for example.

    [I]

    Problem I am with my code is that,

    When the VI is running, the random number remains the same as the Boolean signal is set to TRUE.

    From what I tried so far for the last couple days, using 'the event structure' was the message more concerned that I found,

    However, LabView help tells me that "structure of the event" on the objectives of the RT do not support the events associated with the user interface such as the façade of VI or controls panels.

    I would therefore ask a quick help, since my knowledge of LabView is exhausted at this point.

    This is so the part where I want to generate random numbers, WHEN this structure case is TRUE.

    convert whole numbers, random numbers

    Use them as a table index,

    while I can choose conditions from radom to the given set of conditions.

    Once more, I want to do is,

    generate a SINGLE random number series when the structure above is TRUE.

    Hope I have developed quite clear.

    I'm appreciated for any kind of advice.

    Thank you!

    You just need to store the Boolean from the previous run. Then the logic would be (I'll call her Boolean previous B_prevand current boolean B):

    If B AND B_prev > don't generate new values

    otherwise if B > generate new values

    Edit: to store your Boolean value, you can use a feedback node, or a loop with N = 1 and a registry change.

  • Generate a random number with a decimal point

    I searched all over the internet and cannot find how to generate a random number that had a decimal.

    I'm trying to randomly generate numbers between 12.0 and 13.0.

    Here is my code... I know its bad because of Math.round and Math.random, but I can't seem to find something that deals with a decimal...

    addEventListener (Event.ENTER_FRAME, fl_EnterFrameHandler_1);

    function fl_EnterFrameHandler_1(event:Event):void
    {
    Volt.Text = Math.round (Math.random () * (1) + 12) m:System.NET.SocketAddress.ToString ();
    }

    Any suggestions?

    -Pat

    Try this,

    addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler_1);
    
    function fl_EnterFrameHandler_1(event:Event):void
    {
    
         var rndNum:Number = int(Math.random()*10)/10; // Generate random num with 1 decimal place
         var newVal:Number = newVal + 12;
         volt.text = newVal.toString();
    }
    

    If you want 2 decimal places then replace the 10 per 100.

  • I'm trying to generate a table of random numbers 30. After each 5 readings a new vi must open and indicate to the user than 5 readings were made. and continue with the generation of the table again.

    because I don't have a sensor now, I am currently generating a table of random numbers 30. After each 5 readings a warning should be given to the user 5 readngs are completed. This cycle must be repeated. the size of the table is 30.

    Please help me, waiting for response as soon as possible.

    Once I have the transducer, I'll take 30 analog samples and then after each 5 smaples this wraning will be displayed din a new VI

    Use a while loop with a delay time representing your sampling interval.

    Use is equal to the count Terminal to see if 4, then 4th iteration = 5th sample.

    Use a box structure. The real deal will only run on the 4th iteration.

    In the case of true place a Subvi with your message of your choice in the front panel. Go to the properties of the VI window and set ' open the front panel when it is called.

    The condition to closing of attention is not given to your description.

    Consider that rather than usign a Subvi to do this, you can use the "dialog box one/two/three button" or "display message" live in the palette "user interface and dialogue."

    Please try it out and send your own VI. Do not provide us with a working solution.

    Kind regards

Maybe you are looking for

  • Satellite L20-257: how to configure controls for WinAmp

    My Satellite 20-257 has 4 buttons on the keyboard, which are in the Windows Media Player control during playback. I would like to know how change this settings and define VLC other WinAmp is controlled by these buttons. Thanks for a quick reply. ! Rj

  • We will seek answers carnt engage power sleep mode despite the ok value settings

    new computer operating system loaded ok, but usually indulge dipite sleep mode all the power setting of say everying is ok. boots emediatley after selection sleep it's not mouse or everything I know help becomes very noisy

  • Why my LCD screen is detected as a CRT?

    I have a LCD proview 19 inch screen that is detected as a CRT.  Of course, this translates a mediocre screen image.  I tried to uninstall the monitor and restart windows.  I tried updating the driver and windows tells me is already the best available

  • Wheel of a steady increase since 2015.3

    HelloSince the upgrade to the 2015.3 the wheel of progress contently runs and does not allow me to open all the files still goes not down. I have no problem with any other software, and have deleted the OOBE folder as advised on the Adobe Web site.Pl

  • Back to search results Cache problem

    HelloA customer has just attracted my attention on a problem that seems to touch a lot of my and other sites of BC:JEALOUS. Contemporary Gallery, prints and Studio.http://wiredforwine.com/eCatalyst eCommerce website demoIf you are looking for somethi