box + random problem

Hello

I know, this may look like a beginner problem, but I am a beginner. I do an application in Flash Builder 4 and I would like to find a function to generate a random number from a table of numbers that I provide.

Example: I have 10 boxes, with ten numbers (1,20, - 5, - 9, 56, 908, 6, 45,-23, -99) writing their side. So, I want my application to generate a random number of those registered. How can I do?

Thank you!

Hello

You need to find a random number between 0 and the length table. Can use it as an index to get the value of the table.

Visit this link to know how to generate a random number between 0 and a maximum value

http://cookbooks.Adobe.com/post_Create_a_random_number_within_a_range-16292.html

Tags: Flex

Similar Questions

  • Random problem, download files

    I have a random problem, downloading files on different web sites. I click on the file to download and retrieve the backup file with the file name box instead, I get something like "attachment.php". He always seems to be php files.

    By clicking on the file many times to download later, it will download, but it is very frustrating.

    I went through all the guides and troubleshooting suggestions. Nothing makes no difference. I disable add-ins, antivirus etc. nothing works.

    For example, this is the last download, I tried (click on the download button):

    http://www.Pixologic.com/ZBrush/getting-started/

    I got "download.php", which is not just the zip file with a different name. It is in fact different.

    Do it a few times I finally got the zip file.

    It seems to happen on any web site. The common theme is that this '.php' is involved.

    Is this a bug? Any ideas?

    Do you not see the correct link I posted above at the bottom of the browser window if you hover over the download button?

    You can have security software as a software firewall or antivirus which is at the origin of the problems if safe mode did not help.

  • Reading random problem iTunes 12.5.1

    I updated iTunes to 12.5.1 version. The first day it worked fine, but now all the albums are played randomly. If I use the view artists, Albums or songs, if I click on Play, iTunes does not play the album in the correct order. I tried to restart iTunes and even my computer that runs on Windows 10 with the latest updates, but the problem persists. How can I solve the problem?

    I tried to reinstall iTunes, but the problem persists. So I have to use another drive, if I want to listen to an album in the correct order.

  • Occurring randomly problem

    HP3210 - he began to randomly slow print, shows a paper jam, when there is no and after finishing a print job then starts another when it is not in the queue, and then stops - pressing Cancel returns to normal.   What should do?

    Thank you very much

    Geoff

    Hi there - good new.   I persisted and eventually found a download on the HP site which was written almost exactly my problem.    So, having nothing to lose - installed the update and since then - no 'media jam' message and no preparation, false to print.  Thank you for your encouragement to persist.

    concerning

    Geoff

  • UCS Manager logon box Java problem

    I'm testing Java 7 update 55 with the UCS Manager to verify that all features working. When I opened UCS manager connection poster box but I noticed that the 'Domain' option does not appear. Without it, I can't choose between LDAP or local authentication.

    Someone at - it solved this problem with versions of Java (more recent than the 45 update)?

    Thank you.

    You can upgrade UCSM whitout put to rest, but the supported configuration is to have UCSM, fabric and IOM (which is included with the 'Infrastructure package') running the same version...

    Now you can just upgrade the infrastructure bundle and check 'Table 2' both of the links below to confirm compatibility with the Server Bundle (bundle Server = MMIC, BIOS, adapter card controller, etc.) to see what you pouvez/may not combine:

    http://www.Cisco.com/c/en/us/TD/docs/unified_computing/UCS/release/notes...

    http://www.Cisco.com/c/en/us/TD/docs/unified_computing/UCS/release/notes...

    -Record ALL responses and marked the question as answered if what you are looking for.

    Kenny

  • X 200 random problem blue screen

    I bought X 200 about two months ago, but after the first two weeks, he began to encounter ramdomly blue screen. Everything I did, even when I leave it open, blue screen also occurs. Today I went to Lenovo Think Center to check it out, but after having verified the dump files, they said it is a software problem casue by NETw5v32.sys and ntoskrnl.exe and suggest me to retrieve the entire system. I know a friend of mine has exactly the same problem with me, he picked up his system several times and always met blue screen. It seeems that this solution will not work. Now I wonder what happens to my X 200... Yesterday I use system upadate all my drivers, including Wifi and the BIOS. But today, I met another blue screen... What should I do now?

    One of the blue screen message:

    Product
    Windows

    Problem
    Stop unexpectedly

    Date
    5/11/2008 15:03

    Status
    Not reported

    Signature of the problem
    Problem event name: BlueScreen
    The system version: 6.0.6001.2.1.0.768.3
    Locale ID: 2052

    Files helping to describe the problem (some files may be is no longer available)
    Mini110508 - 01.dmp
    SysData. XML
    Version.txt

    Additional information about the problem
    BCCode: d1
    BCP1: 00003D 60
    BCP2: 000000FF
    BCP3: 00000000
    BCP4: 00003CE0
    OS version: 6_0_6001
    Service Pack: 1_0
    Product: 768_1

    Basic information of my X 200: P8400, 3 G of RAM, 2 G memory, 160 G HDD turbo...

    Thank you ~.

    following my last post.

    I have replaced mainboard (x 200), the problem is gone now... H/W recommended tests it was ok... This laptop was also randomly freeze and restart itself, as well as BSOD...

    I hope this helps.

  • Text - box height problem tool text & confusion

    Hello

    I struggled to solve a problem of text box in my layout of phone.  I have a box of text at the bottom of the page.  The lower edge of the text box touches the top of the footer area.  If I drag the center of the bottom of the text just below box handle of the text, so that no blue dashed line appears in the text box, it looks good in Muse, but when I download and watch the page on my iPhone, there is an empty space under the text (in addition to the footer area).  If, however, I drag the bottom of the text box so that the dashed blue line is a few lines above the bottom of the text, then the text appears correctly on the iPhone.

    I'm not clear on what this broken blue horizontal line in means of text area, other than the height of the text and the box do not match.  It seems not important since the text is displayed even if the box is theoretically too short.  Perhaps someone can explain what that broke horizontal line way and if it's a problem if it appears in the text box.

    Now, for the confusion, I just today created some paragraph Styles so that I can be sure that my pages are compatible.  It seems that the text box can be sized before applying a paragraph Style, dashed blue line disappeared - no extra space below the text on the iPhone.  Once I applied the paragraph Style, that extra space will appear unless I reduce the text box.  I checked and the paragraph Style has no padding, leading etc., normal.  The footer area is not checked.

    I did a few tests, and the problem is not related to the text box on the top of the footer area.  I inserted another test text box under the "problem" box, and the problem persists - extra space unless I have shorten the height of the text box.  I think it has to do with my paragraph Style, but I don't see what is the cause.  I must emphasize that the other text boxes have the same applied paragraph Style and they don't have any extra space under the text.

    Thanks for any help.

    John

    I don't think that your "get extra space." Rather, I suspect the text block is high and narrow, and the text it contains is much shorter in the browser that it appears in Design view in Muse because of differences in the line breaks in the text. It is quite common when using "web safe" fonts and is also true when you view websites in different browsers, browser versions, devices or versions of operating system because of the differences in text layout engines used and available fonts on the device. It is especially common in text frames narrow tall.

    The most effective way to reduce the effect is to use a Web font rather than a 'web safe' police, which will reduce the variation of the layout of the text between the browsers, but ultimately you need to design, with the variations of line in mind, because they are not entirely avoidable. In your case this means that the block of text sizing for minimum height (as indicated by the dotted line) is shorter than the text as it appears in Design view, so when line breaks changes the block of text is reduced in height, rather than leave a space blank at the bottom.

  • User interface input box appearance problem with database field?

    Hello

    I use jdev11.1.1.7

    I drag a control table data to the user interface page as a form, my problem is the database with no data at this time here my page UI form have no data and also input textbox appearance also don't just do not...

    I need empty text boxes with appearance, but I got only names of attributes only

    can someone help me...

    Thank you..

    It is the expected behavior.

    If you want to see the input controls, you need to have a new or existing line at the British Colombia correspondent

  • Preloader freezes randomly - problem reported by many users in this forum.

    I made an animation on the society 20141 CC edge I work, I was always testing locally and everything was fine. When I finished the animation and decided to load on the server, I realized after testing with different browsers (IE, Chrome, Safari, Firefox, etc), the animation freezes in preloader randomly. When I click on "Refresh" the animation loads normally, most of the time. : /

    Here is the link if they can verify for themselves: http://www.Mambembe.com/infos/Ebola/index.html

    As you can see, seems to have a problem that prevents the preloader to get only the files already loading, and it should start the animation.

    I thought I could do something wrong at the time of publication, so I decided to try all possible combinations in the export, but I got the same result.

    After trying to solve on my own, I decided to ask for help in the forums. I was surprised and confused to realize many members, including this forum to report the same problem, without obtaining any official or definitive answer on the case.


    I come here, try to get a help for me and those who encounter the same problem. In the meantime, I'll look for other similar programs try to replace the Board. It's unfortunate because I chose to use the edge to trust Adobe programs and work with them for years. I hope not to disappoint and me to continue my work with the Edge which is a great tool, except when you need to publish.


    Sorry for my English. I hope that was clear, and I count on the support of others with the same problem. We all need to report to what is happening, while the adobe team can help us. I invite you to post your errors here like this post.


    Thank you.

    You can place it at the bottom of the HTML of your right of composition before the tag like this:

  • Text box display problem

    I'm using CF7 developer on a single computer to create pages. I just bought the Standard edition and installed on the server, I'll use. In general, Cold Fusion seems to work, including database connections. However, when I move to a page with a form, the text boxes are missing. The form is built into a table, and the table as well as the other text is missing. Looking at the source of the page in the browser, it's like CF just jumped the table completely. The same exact page works on the development computer, but not on the server computer. Any ideas? Thank you.

    Never mind. :) The page in question involves a query that uses a cookie. I got access to the new installation of the computer of the developer, who already had an established cookie. When I transferred the table with the cookie ID of the new facility, I emptied. It has become a problem where a machine had a cookie that does not match anything in the database on the Server table.

    I have a way to catch this problem on other pages and remove the bad cookie, but the request to this page slipped by me. Thanks for the help.

  • Test the Oracle Instance on the smaller box (RAM problems)

    I got the task of taking an existing database of production and creation of a database of test on a much smaller box. The production box has 48 GB of RAM and eight CPUS (Itanium running HP - UX 11.23). The test box has four gigabytes of RAM and a processor. We had a process in place in the past to do this for Oracle 9i. All the data files, redo logs and Oracle 10g binaries are hosted on an HP EVA SAN, so we use snapshot or mirror of the cloning technology during the production on the test server instance.

    On Oracle 9i, we used to copy the data, delete the control files, then run a script to create new files of control for the test instance. I don't know if the old 9i writing work and have not yet tested this part. Mainly because I have problems to get the test instance to start reliably in the first place. When I copied all the data on, I changed the tnsnames.ora to reflect the host name of the new machine. I made a few adjustments in the file init.ora for production DB as well. At the beginning, I was able to start the database and everything seemed fine. But when I tried to stop him, he gave me the following error message:

    [07:32] [oracle@OracleC:~]$sqlplus "/ as sysdba"]

    SQL * more: Release 10.2.0.1.0 - Production Wed Jul 22 07:32:11 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Connect to an instance is idle.

    SQL > startup nomount;
    ORA-03113: end of file on communication channel


    This error is broad enough that I am certain that what he means is a bad server configuration of database for me probably a problem in the init.ora or SPFILE with a parameter that is calibrated for 48 GB box, not the box of 4 GB.

    Here's what I have in my init.ora file:

    ===========================================================================

    ###########################################
    IO and cache memory #.
    ###########################################
    DB_BLOCK_SIZE = 8192

    ###########################################
    # The library Cache and sliders
    ###########################################
    open_cursors = 300

    ###########################################
    # Diagnostic and statistical
    ###########################################
    background_dump_dest = / oracle10g/admin/prod/bdump
    core_dump_dest = / oracle10g/admin/prod/cdump
    TIMED_STATISTICS = TRUE
    user_dump_dest = / oracle10g/admin/prod/udump

    ###########################################
    # Distributed replication and snapshot
    ###########################################
    db_domain =""
    Remote_login_passwordfile = EXCLUSIVE lock

    ###########################################
    # Configuration file
    ###########################################
    control_files = ("/ oradata10g/prod/control02.ctl",)
    "/ oradata10g/prod/control03.ctl"
    "" / oradata10g/prod/control04.ctl ")"

    ###########################################
    # MTS
    ###########################################
    # Uncomment the following line when your listener is configured for SSL
    # (listener.ora and sqlnet.ora)
    dispatchers # = "(PROTOCOL = CST)(SER=MODOSE) ', ' (PROTOCOL = CST)(PRE=oracle.aurora.server.GiopServer) ', ' (PROTOCOL =)(PRE=oracle.aurora.server.SGiopServer) CST.
    "Dispatchers ="(Protocol=TCP) (SER = MODOSE) "," (PROTOCOL = TCP)(PRE=oracle.aurora.server.GiopServer) ","(PROTOCOL=TCP) (PRE = oracle.aurora.server.SGiopServer) "

    ###########################################
    # Various
    ###########################################
    compatible = 10.2.0
    db_name = prod

    ###########################################
    # Network registration
    ###########################################
    instance_name = prod

    ###########################################
    # Pools
    ###########################################
    JAVA_POOL_SIZE = 24 M
    #shared_pool_size = 1610612736
    # is moved to 128M by George Lenzer to the TEST instance on 06/07/2009
    shared_pool_size = 134217728

    ###########################################
    # Process and Sessions
    ###########################################
    process = 500

    ###########################################
    Recovery and # redo Log
    ###########################################
    fast_start_mttr_target = 300

    ###########################################
    # Sort, hash joins, index Bitmap
    ###########################################
    #sort_area_size = 5242880

    ###########################################
    # System managed Undo and Rollback Segments
    ###########################################
    #undo_retention = 7200
    UNDO_RETENTION = 14400
    UNDO_MANAGEMENT = AUTO
    undo_tablespace = UNDOTBS

    UTL_FILE_DIR = *.

    DB_FILES = 256

    # The value db_cache_size 128M for the TEST by G instance. Lenzer 07-02-2009

    db_cache_size = 128 M
    db_file_multiblock_read_count = 8

    #log_archive_dest = / ora_archlog
    #log_archive_format='arch_%r_%t_%s.arc'

    # the recommendation is 1 per UC

    db_writer_processes = 1

    sort_area_size = 10485760

    ===========================================================================

    There is also a little info. When I try to start the DB and it's just sitting there, my only way out is to kill the process only oracle executes:

    Oracle 4370 4365 247 09:27:18? 09:59 oracleprod (DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

    Then I run "ipcrm". But if I run "swapinfo", it always indicates that most of the system's RAM is eaten up:

    [09:38] [root@OracleC:~]$swapinfo
    Ko Ko Ko START PCT / Kb
    TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
    dev 4194304 0 4194304 0% 0-1/dev/vg00/lvol2
    dev 4194304 0 4194304 0% 0-2/dev/vg00/lvol10
    reserve - 8388608-8388608
    memory 4182760 4070604 112156 97%

    I can't to free up RAM (which is usually about 20% used) after the start of Oracle attempt. The kernel parameters are defined for Oracle9i recommendations, so that they should not be too far from what is recommended for Oracle 10 g.

    I worked on it for about two or three weeks and I am almost of ideas. So any suggestions are welcome.

    Published by: deckard2 on July 22, 2009 07:05

    Here's a quick explanation: http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/ofa.htm#sthref872
    (this is for Windows, but also OK for Unix)

    You can put your SPFILE or INIT files in the directory admin/pfile but Oracle looking at this place unless you create a Unix link in $ORACLE_HOME/dbs /.

  • Text box layout problem - and the number of rows displayed

    Hello

    Wonder if you can help with my 2 problems

    1. when I create text boxes, the label is displayed to the left of the text box. How can I display label above the text box
    CGH

    Label
    TextBox

    Instead of

    Text box label

    2. when I ask report showing my data, that it shows that 15 records per page, for the next set of records, I need to click on the following icon at the bottom of the table to go to the next page.
    How can I view all on the same page?

    Thanks for help

    1. simply check this using the Horizontal / Vertical alignment of attribute in the section of the label of the element of the Page definition.

    2. in the report of the attributes, the value of the plan of paging None; and the number of rows and number of maximum lines to more than the number of rows that will be returned by the report query.

    (You should only ignore this last you really know that the number of lines make this a reasonable option.) Nobody is going to want to scroll through thousands of lines or wait 5 minutes for total information overload. You wouldn't be popular with your admins/ISP network due to the excessive bandwidth consumed either.)

  • Basic box shape problem

    I have problems with what I thought, it's an easy task.  Basically, the Panel shows a choice of three buttons, and the user chooses what task to be completed.  The problem is that when I press a button, nor the other two work.  It's as if the program is stuck in the business structure that is implimented when the first button is pressed.  How can I get the vi to leave this business structure?  An image of vi is attached.  This is part of a larger vi, and this section is closed inside a while loop (not shown).  I know it's probably a very simple question, but I have now spent 2 days on this issue and have had no success.  Help, please!

    Use 3 separate everything into loops. Also, don't forget to include the function that I have photographed in each hoop. The time-out value that you want it to be

  • Nesting of the VMs for vSphere in-a-box = network problems

    Hello all,.

    I am configuring a vSphere infrastructure of VMware Workstation 8.0.2 for training/tests. The problem is that nested VMS started inside, as virtual ESXi machines cannot reach the physical LAN, no matter if the vNIC is defined in (vmnet8) NAT or bridged.

    All the '1st level VMs' can ping each other and reach the outside world without problem. But if I try a virtual machine inside my virtual ESXi of spam, the virtual machine is unable to enter an IP address of the server DHCP VMNet8 embeeded or since our physical DHCP (with of the ESXi VM vNIC in "Bridged" mode).

    I tried to manually set an IP address to a nested on my VM ESX VM and I managed can ping it... but cannot ping the outside world.

    I'm getting VMware Workstation 8.0.2 on Ubuntu 12.04 LTS.

    For some reason, I do not understand everything works fine if I try to deploy the same environment using VMware Workstation for Windows... :-/

    I'll appreciate any help.

    Best regards.

    Check this KB: http://kb.vmware.com/kb/287

  • #apDiv text box position problem

    Hello

    I am a teacher and amateur graphic designer, make a website for children who have learning difficulties. The page I'm trying is available here:

    http://www.John-Paul.TalkTalk.NET/index6.html#

    As you can see there are 'bigger text' and 'small' buttons at the top right of the page using CSS (this is my first shot at CSS). The page works as I want, but I can't place the text as I want it on the screen.

    What I am after is the text boxes under the images where the text gets bigger and smaller when the 'more large text' button is clicked, but at present the text in small characters is not positioned below each image, and large text moves down rather than being exactly where was the small text. I don't know how to move the text up (i.e. to change the space around the word 'University' for the word is plu top), or how to get the big text to focus on the very place where was the small text. I hope that makes sense.

    Finally, I would like to add a cookie to the site so that the preference for large or small text will be remembered. If you could point me in the right direction on how to do that I would be very grateful.

    Thanks for reading this. Any advice would be great.

    Best wishes

    John-Paul

    Would you be able to advise me on a cookie in this page so that the preferences of a user about the size of the text are stored?

    Of course, it's not hard

    Place this Javascript in your:

    
    

    Then change your HTML code:

    
    ...
    
    

    BTW, you should clean your HTML - is not a valid HTML5 document, as it is.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

Maybe you are looking for