newbie on a vi Lottery question

I was through the forum and found a few ways to do this, but I have a problem of table: I put mine to generate five initials and door numbers upward award-winning "powerball", but my question is how can I get the table five to see each number in another cell of the table, rather than in each cell at the same time. I think I need a constant matrix somewhere, but with a while loop in the loop for, I'm not coming with the desired operation.

Here is a copy of my vi and a picture of the "spaghetti".

Also, I use on my student edition 9 version.

Thanks for any help.

Emmanuel says:

  • generate random #s up to 40
  • 1 d is looking to repeat no #s in the shift register
  • AND the results obtained with the elapsed timer and the construction of the table
  • table size = 5, stop vi.

There are several problems with your version:

  • You create random numbers instead of 1.40 0.39
  • Given that the elapsed time resets whenever it times out, it will have 3 seconds more each time a duplicate is found. For example, it will take 6 seconds between numbers if a double is on the first attempt and 9 seconds if two duplicates are found, etc.
  • You're creating random numbers every 100ms, but throw all until the moment where also elapsed.

Here is a quick alternative to your code.

Tags: NI Software

Similar Questions

  • Profile of Newbie Xcode provision of the question and problem recording peripheral Dev Member Center

    Help!  I am a user of Xcode newbie. Just signed up for a developer account (free version added to my existing Apple ID).   I followed a tutorial to make a few changes to the Apple TV 4. In the tutorials that seem very useful do not have additional info for potential problems as those I seem to face at every turn. As far as google can be useful, it can also be a time suck empty soul.  I have a life to live then all help to speed up the answers to these questions would be greatly appreciated.

    -Launch Xcode → click on create a new project in Xcode → select Application under tvOS → Application unique view, and then click Next. Fact

    - In the product name field, enter a unique name such as KodiAppleTVforYourNameHere (done, but I have a problem I can not find the answer to...), and then click Next → create

    The 'organization' identifier is empty and I do not know what to enter and the tutorial says nothing...

    - In the drop-down box team, select your personal team and click the question difficulty to solve problems of commissioning. You will ensure that you are connected to Xcode with a free Apple Developer account. You can learn how to do it using this tutorial.

    I get a "no provisioning profiles found.

    When you click on "solving the problem", I get a pop up saying "no device - create a profile doesn't require" fitted with a registered in space subscribers.

    Then I went to the Member Center and can not find the place where to save a device... nor can I find detailed (for a novice like me) instructions on how to do it.  I tried to follow these instructions, but had problems as shown below.

    1. go to Developer.apple.com...

    2. go in the "Member Center". (This is not an option that I see...)

    3. go in "Certificates, identifiers & profiles." (Went straight to this...)

    4 Select "Devices" on the left navigation. (nowhere to be found... and am stuck here...)

    .... 5. click on the sign "+" to add a device.

    .... 6. enter a name for the device and the UDID.

    .... 7. at the bottom of the page, select continue when you are finished.

    .... 8. at the bottom of the page, choose "Save" to save the new device. Repeat these steps to add up to 100 devices on a regular account.

    These steps seem easy enough, but I continue to find myself in a position that some things I should do just are not there... like the devices section not found in the center of development Member?

    Help or direction would be greatly appreciated.  Thank you!

    Have you ever this resolved? I'm having the same problem.

  • newbie on Eloqua user interface questions

    Two quick questions:

    (1) is there a setting that would allow me to change the width of the left column navigation in Eloqua.  A lot of our structure was created with long file names and I have constantly to scroll to the right of the column to see the full file name.  I'd like to be able to increase the width of the navigation in the left column, so I don't have to scroll to the right all the time.

    (2) is it possible to open different sections of Eloqua in a new tab or a new window?  Click right don't open in a new tab or a new window.  In SFDC, you can unlock different sections in a new tab, so I can go back and forth between the two areas.  Is there an easy way to go back and forth between two different modules Eloqua?  Example, if I'm in the management/Contacts/groups Evaluate / database, go somewhere else and then want to go back to where I was, I have to click several times to return to the management/Contacts/groups Evaluate / database.

    Thanks in advance for any advice.

    1. no - I recommend you change your naming conventions.

    2. If you are using IE, if you press ctrl N you should open the page in a new window

    Hope that helps

  • PS Newbie with layer CC translate question

    I am a newbie in PS. I am currently using Adobe PS CC, in which I want to merge a number of images to form a 'collage '. These images are already named with coordinates, as (0, 1) .png with size 1280 x 1280 pixels and I all loaded in a photomerge PS document. I guess that each of them is contained in an independent layer, and I can use free transform to move these layers to my position required that these images can be likened to a great image like a puzzle. When the number of layers is important, this hand really is a tedious job. So I want to automate with the script. I try the following script and run it, but without any response. Please correct me as I am new (and also news in JavaScript as well)

    # target photoshop
    
    
    function Main()
    {
         MoveLayerTo = function(l, x, y) {
               var b = l.bounds;
               var x1 = b[0].as("px");
               var y1 = b[1].as("px");
               var x2 = b[2].as("px");
               var y2 = b[3].as("px");
               var xc = x1 + (x2-x1)/2;
               var yc = y1 + (y2-y1)/2;
               l.translate(x-xc, y-yc);
            };
    
    
      var i = 0;
      var j = 0;
      for (i = -6; i < 3; i++) {
      for (j = 3; j > -11; j--) {
      MoveLayerTo(app.activeDocument.layers.getByName("(" + i + ", " + j + ").png"), new UnitValue(640 +  (i + 6) * 1280, "px"), new UnitValue(640 + (3 - j) * 1280, "px"))
      }
      }
       
    }
    
    

    You said that your script does not respond, what exactly? you get an error message, or is it just do nothing? Just for a few entries, you have a function to run your program, but no line of code to call it. You need a line:

    Main()

    I would define your rule units at the top of your script and drop all of the code in.as('ps"), just put:

    app.preferences.rulerUnits = Units.PIXELS;

    The other thing most people do is to define a variable of the loop in the loop, so that it makes it not comprehensive. Your code should look more like this:

    # target photoshop 
    
    app.preferences.rulerUnits = Units.PIXELS;
    if(app.documents.length>0){
        var doc = activeDocument
        Main ()
        }
    else(alert('There are no open files')
    function Main()
    {
      for (var i = -6; i < 3; i++) {
          for (var j = 3; j > -11; j--) {
          MoveLayerTo(doc.layers.getByName("(" + i + ", " + j + ").png"), 640 +  (i + 6) * 1280, 640 + (3 - j) * 1280)
          } //end j loop
      } //end i loop
    
    function MoveLayerTo (l, x, y) {
              var b = l.bounds;
              var x1 = b[0].as("px");
              var y1 = b[1].as("px");
              var x2 = b[2].as("px");
              var y2 = b[3].as("px");
              var xc = x1 + (x2-x1)/2;
              var yc = y1 + (y2-y1)/2;
              l.translate(x-xc, y-yc);
            };
    
  • Newbie on the vector art questions

    I am importing some vector clipart. I need to convert to grayscale before I can use it.

    QUESTION #1: Can I convert it to grayscale in InDesign, or should I open art in Illustrator and convert grayscale it?

    QUESTION #2: Since this is the vector art, can I simply intensify it as top that I do, or do I need to say ID or Illustrator what size I want?

    Thank you.

    1. you must do this in Illustrator.

    2. the scale to your heart's content.

    Bob

  • Newbie on Equium A200 (PSAE2) question

    I recently bought the laptop A200-15i (Equium A200 (PSAE2)). Everything works fine, but I noticed that I was not provided with a master restore disk. I don't see any facility for the creation of a non more. The list of packages informs me that I should have received two disks. Which is the Windows Vista Anytime disk pro and the master disc. Can someone please inform here.

    Second, the model above has two disks or the only drive partitioned into two.

    Thank you for your patience and your help.

    Just go back to the shop to have you brought your laptop and get the disc

  • Newbie on the aperture lens question sets

    I did have the chance to try a goal at opening fixed yet. I just wanted to know if you can still change the opening of like for example f/2.8 to f/8 or more. ? Or is the only opening you can f/2.8. How does this work?

    This is not a "fixed" aperture because it cannot be changed.  This means that this isn't a "variable" opening that changes as the focal length changes.  This lens keeps f2.8 it is thanks to its focal range.  It can and it has all the apertures from f2.8 to f22.

    This goal is, BTW, the best 24-70mm made today.  There's nothing better.

  • Newbie with the mouse event question

    Hello! I started playing with as3, and I have a function for mouse clicks that draws a shape on each click. However, the mouse click event does not appear to work except when I click on a MovieClip, that I placed in the middle of the screen. Is there a way to make the mouse click event recognize when I click anywhere on the screen?

    Thank you

    Will be

    public void newGame()

    {

    Avatar = new Avatar();                                                  Click the mouse entered only when you click on the avatar?

    addChild (avatar);

    avatar.x = mouseX;

    avatar.y = mouseY;

    addEventListener (MouseEvent.CLICK, clickHandler);

    gameTimer = new Timer (25);

    gameTimer.start ();

    }

    you need to add the event listener to the stage

    stage.addEventListener (MouseEvent.CLICK, clickHandler);

    However you must make sure that this step is not null

    If the code above throws an exception to reference null, you'll also need to add and ADDED_TO_STAGE listener

    post the rest of your code and I can help you with that

  • Newbie on title bearing Options question

    Thanks for the research!  I created my first project and is now trying to end it with a nice rolling title. Now I can't get the title all drive faster than 2-3 seconds, how can I control how fast the title roll, and how long it begins.

    Here I want to come, please let me know if this is possible:

    1. The full title clip lasts 12 seconds
    2. Title rolls of offscreen, begins in the second and is entirely up to the screen in a stationary position for about 5 seconds (does not roll off the screen)
    3. Title is displayed for about 5 seconds, then fades to black (complete in 1-2 seconds)

    Is it possible to have as much control over a title of the bearing with Premiere Elements?

    Thanks for any help you can provide me with!

    I find that you so much more control, when the animation of titles, if they use keyframes on the fixed effect > Motion > Position (and for some, more "looks" Motion > scale too). This is done by creating a static title (do not use one of the presets) first and then drag it to the Timeline. With it is selected, click the effects tab, and then look down to the button change the effects. Click on that, and you will then have the effect controls panel. Note the fixed effects (those that are added automatically) and find the movement. It has a small triangle beside it, and you want to twirl that open, by clicking the triangle. There you will see the Position and scale.

    With keyframes, you can adjust the speed of the roll or Crawl, can start off screen, as you want, can pause a title, when it is in the center of the image, then turn off the animate (in any direction you want!). The animation is only limited by your imagination.

    Help files has good coverage of the keyframes, and Steve Grisetti has a tutorial into 3 parts (IIRC) on keyframes on Muvipix.com. I strongly recommend you to those.

    Keyframes can be used to animate most of the effects, not only fixed effects, so no learning curve is more than offset, by the power that you will earn a lot in Meadow.

    Good luck

    Hunt

  • Please help newbie with basic video editing question

    Thanks for the research.  I just bought Adobe first Elements 9 and I'm working on my first project.  All of the videos that I imported for this project were shot on 8mm tape, and they all have a small band at the bottom that shows nothing but the noise or static.  Other that that, they seem to be good.

    Is there a way I can cut the bottom out of these YouTube videos in my production?  Like the place a frame around the video that hides the bottom 1/2 inch of video or so?

    Thank you!

    It's the small space of the transition between the images on the tape does not correctly positioned in the vertical removal interval.

    On some VCRs, there is a setting of framing, but probably not on your camera.

    He normally sees not on old televisions analog because they overscan but flat sacreens now usually show the full frame.

    You can hide in PE9 making the whole slightly larger photo and moving ot slightly downwards.

    Click on the preview area, and you will see a white rectangle with dots in the corners.

    Drag these points around and down to increase the size of the whole image and move the image down so the noise is hidden.

    This will make the image a little more blurry so if you want to keep the same, you can insert a black mask or effect of crops to the place, but it will not show in your finished product. Looking for help with this.

  • Newbie on selection and weight question

    Hi all

    I'm new here and for Illustrator.

    I was not using Illustrator for a long time and especially as a go between SketchUp, fom where I export files EPS and Photoshop, where I can easily paste their pie until my heart as dynamic objects and then.

    In Illustrator, clean the drawing before Pshop, removal of unnecessary lines that clutter the plan or section, no correction of errors I task etc.

    One thing I want to do is to select individual lines (paths?) and change line thickness; for the moment, when I select one and change its weight, it also changes a lot of random others in the drawing that obviously the program considers somehow related, but that shouldn't really be. I ended up deleting the line and he redrawing in the correct weight, which wastes a lot of time.

    Is there a way to "blow up" (for lack of a better term) the drawing so that the lines are not connected more?

    Thank you

    ALWAYS indicate what version of the AI that you use.

    Whenever making selections, always pay attention to this kind of object is selected. According to the version, which will help you understand what is happening in this little intuitive interface.

    Maintain the visible appearance palette. Select one of the paths to change. Recent versions can present 'A composite path' object type. If you understand what is a composite track, which alone will tell you why to change the weight of the race of the chosen path also changes others.

    Whenever it comes to vector graphics imported from other programs (including other programs owned by Adobe), you may encouter these constructions: groups, composed of railways, the clipping mask. Groups and the clipping mask can even be nested. Application (often repeated application) disassociate, object > CompoundPath > Release and object > ClippingMask > commnands communicated frequently need to 'split' these buildings down to individual objects of cowards.

    You should probably spend some time in the documentation.

    JET

  • Newbie on wink-of-base question

    Hello... I have a particular paragraph where I want to drive out just a bit, but as I increase the attack, the text wants to align itself with the following basic lines. How can I tell a particular paragraph not to align themselves on the basic lines that I can do a subtle attack? Thank you.

    In the paragraph style, go to the withdrawal and spacing, change the attribute Align to grid: change this voice against zero

    If you don't have paragraph styles, or only want to change one paragraph, go to control panel paragraph (CTRL (CMD) ALT T) and change the icon at the bottom of this Panel, click the icon on the left.

    Then increase your leading to your desired amount.

    If the option is none and you used the left icon and it will still pass, then go into the options of text block, (CTRL (CMD) B when the frame is highlighted) and check the basic command-line options (see Basic tab).

  • Newbie on the Oracle process question

    Hello

    I read that the Oracle background processes are dbw0, lgw0, trunc, smon, pmon, cjq0 and arc0. However, I noticed that these processes are not in the list of processes. I'm in Oracle Database 11g in Oracle Enterprise Linux. I see that there is an Oracle process well. Background processes are included within the Oracle process for a given case?

    Thank you in advance.

    Justin
    SQL> !ps -ef | grep oracle
    oracle    8049     1  0 11:28 ?        00:00:09 ora_pmon_v102
    oracle    8051     1  0 11:28 ?        00:00:00 ora_psp0_v102
    oracle    8053     1  0 11:28 ?        00:00:00 ora_mman_v102
    oracle    8055     1  0 11:28 ?        00:00:02 ora_dbw0_v102
    oracle    8057     1  0 11:28 ?        00:00:02 ora_lgwr_v102
    oracle    8059     1  0 11:28 ?        00:00:05 ora_ckpt_v102
    oracle    8061     1  0 11:28 ?        00:00:08 ora_smon_v102
    oracle    8063     1  0 11:28 ?        00:00:00 ora_reco_v102
    oracle    8065     1  0 11:28 ?        00:00:06 ora_cjq0_v102
    oracle    8067     1  0 11:28 ?        00:00:09 ora_mmon_v102
    oracle    8069     1  0 11:28 ?        00:00:17 ora_mmnl_v102
    oracle    8071     1  0 11:28 ?        00:00:00 ora_d000_v102
    oracle    8073     1  0 11:28 ?        00:00:00 ora_s000_v102
    oracle    8081     1  0 11:28 ?        00:00:00 ora_qmnc_v102
    oracle    8097     1  0 11:28 ?        00:00:00 ora_q000_v102
    oracle    8099     1  0 11:28 ?        00:00:00 ora_q001_v102
    oracle   16549 16547  0 17:14 ?        00:00:03 oraclev102 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle   18768     1  7 18:40 ?        00:00:00 ora_j000_v102
    bcm      18769 16547  0 18:40 pts/0    00:00:00 /bin/bash -c ps -ef | grep oracle
    bcm      18771 18769  0 18:40 pts/0    00:00:00 grep oracle
    

    CUT PASTE & is wonderful to show what you actually see.
    Above is my CentOS V10.2.
    What are you talking about, again?
    Most of the above processes are Oracle background processes. Guess which ones who.

  • How to print a triangle with a right angle with asterisk in labview?

    Hello friends I am a newbe 2 labview so my question is what is the code to print right angle triangle

    as *.

    ****

    ***

    **

    *

    Ray.R wrote:

    There are several ways to do this, the simple constant impression of a string that contains the stars, in a table containing the same to a decreasing number of Asterix in a loop For... Well the list could go on...

    Ideas are still endless, it seems...

  • How to choose selectively refers to simplified data standards?

    Hi all

    First of all, I'm a newbie to LabVIEW, and my question may seem subtle to many of you. So, I apologize to if that's the case.

    I'm trying to implement a very simple algorithm in which

    (1) a while loop continues by pulling a series of random numbers,

    (2) and when a user clicks on a button, it starts to collect a series of numbers from the moment click on takes an average of them and store it in a global variable.

    (3) and when a user clicks the same button (must not be the same) once again, it goes back and keeps pulling the random number, but this time, the output will be divided by the global variable.

    Basically, I'm trying to normalize a data set by selectively choosing my reference in the strealine of the same data. I tried to combine some structures (including of course some time put in loop) as condition, events... but not at work.

    If you have an idea or a notice, I would really appreciate it.

    Thank you!

    It is generally not a good idea to use global variables to pass around data that changes frequently. A queue is usually a better way to transfer data between parallel screws

    Your base to start and stop basic buttons are interchangeable. If one is on, case 1 is selected. An enum may be a better choice. It allows you to clearly indicate to the user what is meant by the case wher are your buttons or turn off simultaneously.

    I added registers at offset for the table and the normalization factor.

    Lynn

Maybe you are looking for