HELP!!!  math.random() problem

Hello,
I was wondering if anyone can help me with a problem I'm
running into using the math.random(). I'm using Flash CS3 and
created a very simple script to select random frames in a simple
movie. It works as expected in the CS3 environment and in Safari
but it doesn't work correctly in Firefox or in the DotNetNuke
module I am using. Here is the code:
i = Math.ceil(Math.random() * 3);
gotoAndPlay("Image"+i);
I would appreciate any help you can provide.

Remember that Math.random() function returns a positive double value between 0.0 and 1.0. For a better definition you can refer to the Math class in the API.
Since this is an assignment, I am not going to give you the code but I'll just tell you how you should be going about solving this.
Now you have two limits right? What you can do is, multiply the smaller of the two numbers (I guess in your case its going to be the top) with the random number generated by the Math.random() function. Just add a check to see if this result is lesser than the maximum limit. If yes, then go ahead and add that number to the array. If not, just repeat the same thing.
I hope you got the idea. If you still have problems, please let me know.
Plutaurian

Similar Messages

  • Help with math.random!

    I'm trying to replace all even numbers in a string with odd numbers that are produced from a random generator. I have somewhat of an idea of how to do it as far as creating an array of 5 characters(1,3,5,7,9) and then implement the math.random to take random numbers from that array. i just dont know how to execute that. for example:
    "adam123456789" -->should be "adam153157739"
    whereas, the underlined(5,1,7,3) should be random numbers(i just picked these for an instance). is it possible to do any form of :
    Methods...
    char [ ] ary = {1,3,5,7,9};
    String line = "adam123456789";
    line = line.replaceAll("[0,2,4,6,8]", Math.round(Math.random()*[ary]));
    return line;**i'm a beginner, so i dont really know what im talking about. just seeking help. thanks!

    ok. this is the class with all of my methods in there. just excuse the rest of it..
    import java.util.Random;
    public class NoVowelNoEven {
      private String str = "";
      NoVowelNoEven() {
        str = "hello";
      NoVowelNoEven(String newString) {
        str = newString;
      String getOriginal() {
        return str;
      static String getValid(String newString) {
        char[] arr = newString.toCharArray();
        String str2 = "";
        for (int i = 0; i < arr.length; i++) {
          if (isValid(arr)) {
    str2 += arr[i];
    return str2;
    static int countValidChar(String newString) {
    String validString = getValid(newString);
    return validString.length();
    static String replaceWithYAndOdd(String newString) {
         char [] ary = {1,3,5,7,9};
         String str3 = newString;
    str3 = str3.replaceAll("[a,e,i,o,u]","y");
    str3 = str3.replaceAll("[A,E,I,O,U]","Y");
         //str3 = str3.replaceAll("[0,2,4,6,8]", );
    return str3;
    static boolean isValid(char char2) {
    switch (Character.toLowerCase(char2)) {
    case 'a':
    return false;
    case 'e':
    return false;
    case 'i':
    return false;
    case 'o':
    return false;
    case 'u':
    return false;
    case '0':
    return false;
    case '2':
    return false;
    case '4':
    return false;
    case '6':
    return false;
    case '8':
    return false;
    default:
    return true;

  • Desperate HELP with Random Numbes in an Array & Do / While

    Please somebody help, I have been working this problem for over 7 days now and can't get it. I have tried everything from a while to a do while to this and that. I need to have an Array of 8 that when run will produce random numbers for output between 15 to 25. I CAN"T GET IT PLEASE HELP. I am new to JAVA and have done everything I can think of to resolve this. I even have purchased a new book and looked at every site trying to find a solution. PLEASE HELP! Here it is:
    import javax.swing.*;
    public class RandomArray{
    public static void main (String [ ] args) {
    JTextArea outputArea = new JTextArea ( );
    int myArray [ ]; //array declaration
    myArray = new int [ 8 ]; //allocating memory
    String output = "Array values at initializatioon ";
    output += "\nIndex\tValues";
    for ( int i = 0; i < myArray.length; i ++)
    output += "\n" + i + "\t" + myArray [ i ];
    output += "\n\nArray values after assigning values within the range of 15 and 25";
    do {( int i = 0; i <myArray.length; i++)
         while     myArray [ i ] = 15 + (int) (Math.random ( ) * 25);
    output += "\n" + i + "\t" + myArray [ i ];}
    outputArea.setText (output);
    JOptionPane.showMessageDialog (null, outputArea,
    "Array Value before and after",
    JOptionPane.INFORMATION_MESSAGE);
         System.exit ( 0 );
    The output that I need is in two columns one with the initial array 0-7 and the second should be random numbers 15-25. Please help, please

    here you are :
    import javax.swing.*;
    public class RandomArray
    public static void main (String [ ] args)
         JTextArea outputArea = new JTextArea();
         int       myArray [] = new int[8];
         String output = "Array values at initializatioon ";
         output += "\nIndex\tValues";
         for (int i = 0; i < myArray.length; i ++)
              output += "\n" + i + "\t" + myArray [ i ];
         output += "\n\nArray values after assigning values within the range of 15 and 25";
         for (int i = 0; i < myArray.length; i++)
              myArray [ i ] = 15 + (int) (Math.random ( ) * 10);
              output += "\n" + i + "\t" + myArray [ i ];
         outputArea.setText(output);
         JOptionPane.showMessageDialog (null, outputArea,
              "Array Value before and after",
              JOptionPane.INFORMATION_MESSAGE);
         System.exit(0);

  • Does the Math.Random() work differently in Firefox and Safari??

    Hello,
    I was wondering if anyone can help me with a problem I'm
    running into using the math.random(). I'm using Flash CS3 and
    created a very simple script to select random frames in a simple
    movie. It works as expected in the CS3 environment and in Safari
    but it doesn't work correctly in Firefox or in the DotNetNuke
    module I am using. Here is the code:
    i = Math.ceil(Math.random() * 3);
    gotoAndPlay("Image"+i);
    I would appreciate any help you can provide.

    Thanks for following up with me. Yes. When I test the movie
    its works fine in Safari but not in Firefox and I don't have a clue
    as to why. I hope that you can shed some light on this for me.
    Thanks.

  • Hello from a new member and help with random images on refresh

    Hi All,
    I've just joined the forum. In fact I've really only just started to use Dreamweaver. I've covered a lot of ground in the last few weeks and
    have manage to set up a basic site using CSS for layout but now I've hit my first problem.
    On the index page of the site - http://www.hcadesign.co.uk/ there is a large main image which I would like to change each time someone
    visits the site or hits refresh. I've hunted around and found lots of scripts, all using java, that seem to do just this but I'm not having any
    luck getting them to work.
    My pages code is as follows -
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Humphrey Cook Associates - Architects - Interior Designers - Project Managers</title>
    <link href="styles/hca_styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="images/header.gif" width="800" height="100" alt="hca_header" /></div>
      <div id="menu">
        <ul>
          <li>About Us</li>
          <li>Residential </li>
          <li>Special Needs Housing</li>
          <li>Hotels</li>
          <li>Conservation</li>
          <li>Interiors</li>
          <li>Offices</li>
          <li>Sustainability</li>
          <li>Commercial</li>
          <li>News</li>
          <li>Contact</li>
        </ul>
      </div>
      <div id="main_image"><img src="images/haydock_atrium_420x300.jpg" width="420" height="300" alt="haydock_atrium" />
      </div>
      <div id="menu_right">
        <h3>Latest News</h3>
        <p>Planning permision finally granted for the proposed 'Villa De France'</p>
        <div id="news_image_01">
          <p><img src="images/news_villa_de_france_90x50.jpg" alt="villa_de_france" width="90" height="50" /></p>
        </div>
        <p>Application submitted for new 30 storey hotel with retail in Tower Hamlets</p>
        <div id="news_image_02"><img src="images/news_alie_St_90x50.jpg" width="90" height="50" alt="alie_street" /></div>
      </div>
      <div id="spacer"></div>
      <div id="bottom_left"><img src="images/riba_logo_127x67.gif" width="127" height="67" alt="riba_logo" /></div>
      <div id="bottom_thumb_01"><img src="images/thumb_beckton_95x67.jpg" width="95" height="67" alt="beckton" /></div>
      <div id="bottom_thumb_02"><img src="images/thumb_edgeworth_link_95x67.jpg" width="95" height="67" alt="edgeworth" /></div>
      <div id="bottom_thumb_03"><img src="images/thumb_tov_bathroom_95x67.jpg" width="95" height="67" alt="haydock" /></div>
      <div id="bottom_thumb_04"><img src="images/thumb_edgeworth_interiors_portrait_95x67.jpg" width="95" height="67" alt="the_old_vicarage" /></div>
    <div id="bottom_right">
      <h1>Architects</h1>
      <h1>Interior Designers</h1>
      <h1>Project Managers</h1>
    </div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    I've highlighted where the image to be rotated is in red.
    The scripts I've found have generally involved putting something in the <head>, something where the image is to be (but I wasn't sure if it should be
    within the div tag or after img src or what?) and also a seperate *.js file stored in the root directory.
    Anyway I'm not getting anywhere and need some help as I really don't know what I'm doing with javascript.
    Cheers

    Hi and Welcome to the DW Forums. 
    For the sake of clarity, Java is not the same thing as JavaScript. 2 entirely different programming languages.
    Copy and paste the following code into a new, blank HTML page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Random Banner</title>
    <script type="text/javascript">
    <!--//Random Banner image on Page Reload 
    //store the images in arrays below.
    //First banner is always image [0].
    //If you add more banners images, change the array count (4).
    images = new Array(4);
    images[0] = "<a href='http://www.example.com'>
    <img src='path/first-image.jpg' width=' ' height=' ' alt='some-description' /> </a>";
    images[1] = "<a href='http://www.example.com'>
    <img src='path/second-image.jpg' width=' ' height=' ' alt='some-description' /> </a>";
    images[2] = "<a href='http://www.example.com'>
    <img src='path/third-image.jpg' width=' ' height=' ' alt='some-description'  </a>";
    images[3] = "<a href='http://www.example.com'>
    <img src='path/fourth-image.jpg' width=' ' height=' ' alt='some-description'  </a>";
    index = Math.floor(Math.random() * images.length);
    document.write(images[index]);
    //done
    // -->
    </script>
    </head>
    <body>
    <h1>Random Banner on Page Load.</h1>
    <p>The more images you have in your array, the more random it will seem.</p>
    <p>Change the URLs from example.com to your your own site pages.</p>
    <p>Change path/image to images in your local site folder.</p>
    </body>
    </html>
    Good luck with your project,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web-design.blogspot.com/

  • Help sort randomly generated integers

    I am having trouble with this peace of code; I wrote a little test and found the same problem in my larger program. My problem is I can't sort an array that I randomly put int values in but if I put them in manually the values will sort. And hits or help would be great.
    public class test {
        public static void main (String [] args) {
            int[] array = new int[20];
    // Generator random int into array
            for (int i=0; i<array.length; i++) {
                array[i] = (int)(Math.floor(Math.random() * (20.0 - 0.0)) + 0.0);
    // Selection sort
            int si, temp;
            si = 0;
            for(int i=0; i<=array.length-2; i++) {
                for(int j=i+1; j <=array.length-1; j++) {
                    if(array[j]<array)
    si = j;
    // Swap
    temp = array[i];
    array[i] = array[si];
    array[si] = temp;
    // Output
    for(int t=0; t<array.length; t++) {
    System.out.println(array[t]);

    This code will sort, and i am not asking anyone to do it for me, just and hits on what the problem could be.
    public class test {
        public static void main (String [] args) {
            int[] array    = {9,8,4};
    // Generator random int into array
            for (int i=0; i<array.length; i++) {
                array[i] = (int)(Math.floor(Math.random() * (20.0 - 0.0)) + 0.0);
    // Selection sort
            int si, temp; 
            si = 0;
            for (int i=0; i<=array.length-2; i++) {
                for (int j=i+1; j<=array.length-1; j++) {
                    if(array[j] < array) {
    si = j;
    // Swap
    temp = array[i];
    array[i] = array[si];
    array[si] = temp;
    // Output
    for(int t=0; t<array.length; t++) {
    System.out.println(array[t]);

  • How to change double i = Math.random(); value to (int) value

    I am trying to find out how to convert a given double value to integer, which is, to conver double myNumber = Math.random() to (int) value. Here is the sample program look like this.
    Thank you for the help.
    import javax.swing.JOptionPane;
    public class numbers
    public static void main(String[] args)
    int upperLimit = Integer.parseInt(JOptionPane.showInputDialog
    (null, "Enter the upper range integer."));
    double myNumber = Math.random();
    //Test of Random numbers.
    System.out.println("The Upper random number limit is: " +
    myNumber * upperLimit);
    } //End of main.
    } // End of class.

    Not sure exactly what you want and why you want to change the double to an int. I'm assuming by this you want to generate random integers, from 1 to the upper limit the user enters? If so, this is how I would do it:import java.util.*;
    import javax.swing.*;
    public class Numbers
        public static void main(String[] args)
            int upperLimit = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter the upper range integer."));
            Random r = new Random();
            int myNumber = r.nextInt(upperLimit) + 1;
            System.out.println(myNumber);
    }

  • Need some help with Random numbers.

    Hey,
    Im not sure why this is not working....
        public static void main(String[] args) {
        System.out.printf ("Enter n:\n");
        Scanner keyboard = new Scanner (System.in);
            int n1=0,
            n2=0,
            n3=0,
            n4=0,
            n5=0,
            n6=0,
            facevalue,
            x1,
            count = 0;
            double x = keyboard.nextDouble ();
            x1 = rollDie ();
            System.out.println(x1);
        while (count < x) {
            facevalue = 1+x1.nextInt (6);
            if (facevalue == 1) n1++;
            if (facevalue == 2) n2++;
            if (facevalue == 3) n3++;
            if (facevalue == 4) n4++;
            if (facevalue == 5) n5++;
            if (facevalue == 6) n6++;
            count += 1 ; }
        System.out.printf ("%d %d %d %d %d %d\n",n1,n2,n3,n4,n5,n6);
            int maxValue = n1;
            if (maxValue < n2)
                maxValue = n2;
            if (maxValue < n3)
                maxValue = n3;
            if (maxValue < n4)
                maxValue = n4;
            if (maxValue < n5)
                maxValue = n5;
            if (maxValue < n6)
                maxValue = n6;
        System.out.printf ("Max %d\n",maxValue);
        System.out.printf ("Avg %f\n",
        1/x*(n1*1+n2*2+n3*3+n4*4+n5*5+n6*6));
        public static int rollDie (){
            int x1 = (int) Math.random();
            System.out.println(x1);
            return x1;
    }The random number is always 0. Also there is an error at facevalue = 1+x1.nextInt (6); That says 'int cannot be dereferenced.' Please help! thanks!

    Also, this particular assignment seems to be a good time for you to learn about arrays. Look for a tutorial on java arrays. This will reduce your lines of code by 75%.
    What I mean is, you have 6 different variables to hold the total number of times each roll occurred. Instead, you could have a length-6 array:
      //declaring
      int[] tally = new int[6];
      //adding one to the tally
      int nextRoll = random.nextInt(6) + 1;
      tally[nextRoll-1]++;

  • Finance Homework Help, Accounting Assignment Help, Business Homework Help, Math Homework help

    The site ACCOUNTINGHOMEWORKTUTORcom helps the students in Accounting Homework Help, Finance Homework Help, College Homework Help, Business Homework Help, Math Homework Help, Marketing homework help, statistics assignments help answers, economics assignment solutions.
    The website ACCOUNTINGHOMEWORKTUTORcom, which is, a Global community of Students and Subject Experts where Students can interact with Tutors/Experts to get the Homework Help/Solutions of their Queries/Assignments/Projects. As per the past track records of last four years, organization is committed towards Quality College Homework Help to the Students who want to become part of Homework Help Team.
    ACCOUNTING HOMEWORK TUTOR provides Homework and Assignment Help in all Subjects. The website can also help you with Essays & Research Papers. Most of the tutors and writers of the company are either PhD or Master degree holders in their respective subjects.
    Their Team is efficient in College Homework Help, Statistics Homework Help, Finance Homework Help, Accounting Homework Help, Business Homework Help, Chemistry Homework Help, Math Homework Help, Algebra Homework Help, and Science Homework Help etc.
    Tutors and writers are committed to fulfill the requirements and meet the deadline with the highest quality of writing. All essays are plagiarism free and are checked for plagiarism before being delivered to you. The dedicated team of academic writers has great experience and writing skills.
    All tutor/writers are highly qualified and trained to write all types of dissertations, essays, research papers, book reviews etc.. All writers write exclusively for them so that there is no problem of plagiarism. Also this ensures that a student gets the very same writer/tutor always for his series of assignments. The services ensure that the paper is delivered to the client well within deadline. This enables the student to review the work and ask for minor changes that he would like.
    The site ACCOUNTINGHOMEWORKTUTORcom deals into variety of subjects like Anthropology, Archeology, Arts, Biology, Business, Chemistry, Computers & Technology, Community Studies, Criminology, Ecology, Economics, Education, Engineering, English Language, Finance, Geography, Geology, History, IT (information technologies), International Studies and Diplomacy, Languages & Linguistics, Law, Leisure and Tourism, Literature, Mathematics, Media Studies, Music, Marketing, Management, Medicine & Health Care, Nursing, Philosophy, Political Science, Psychology, Programming, Religion, Science, Social Issues, Statistics, Teaching, Technology.

    Whenever It comes to my mind the word Accounting, I get really sick & weak to my kneels. It happens a lot. Once I came across www.accountinhomeworktutor.com
    The guys are really helpful in accounting homework help & finance assignment help for financial comparative analysis, case study analysis, ratio analysis.
    I recommend this to everyone out there.
    finance homework help

  • Avoid Math.random() from looping the same number twice?

    I'm trying to play a random gallary image by making it stops at different frame every few seconds, and the actions is completely random.
    The problem is, since there are only 5 different images(5 frames) I'm displaying, there is a high probability that it stays at the same frame, how do I avoid that? Like avoid staying at the same page twice, if not run the function again....?
    setInterval(createItems,throwItems);
    var RandomImg:randomImg =new randomImg();
    RandomImg.y=100;
    RandomImg.x=180;
    RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);//generate random value between 1-5
    addChild(RandomImg);
    Thanks

    How do I keep track of the random value, like what value should I put within the if to compare?
    I try modify it a little, and wrap it within an if(), and use preValue to track down the previous frame, am I doing it right?
    setInterval(createItems,throwItems);
    var preValue:Number;
    function createItems():void
         var RandomImg:randomImg =new randomImg();
         var randomFrame= Math.floor(Math.random()*(1+5-1))+1; //generate random value between 1-5
         RandomImg.y=100;
         RandomImg.x=180;
         RandomImg.gotoAndStop(randomFrame);
         if(preValue == randomFrame)
              RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);
              addChild(RandomImg);
              preValue = randomFrame;
         }else
                        addChild(RandomImg);
                        preValue = randomFrame;

  • My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem.

    My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem. Iphone4s, 32gigs, IOS 7.1.2
    I don't know why it stopped working but it happened a month or two ago but the option on this phone that's usually all the way to the left when you select your device but now its not and I don't know what caused it. ive already tried troubleshooting my problem but have found no help.

    Hello Salmomma,
    Thank you for the details of the issue you are experiencing when trying to connect your iPhone to your Mac.  I recommend following the steps in the tutorial below for an issue like this:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    Additionally, you can delete music directly from the iPhone by swiping the song:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Acrobat Pro 6 Average Daily Production and Math.round problem

    Acrobat Pro 6 Average Daily Production and Math.round problem
    (Production.0) (154) (whole units) . (Production.1) (90) (fractional) / (divided by) 31 (days) results in (Average.0) (4)(whole units) . (Average.1) (10) (fractional) using :Math.round.� Noticed that 154 (whole units) . 85 through 99 (fractional) also show 4.10. (without Math.round : 5.00)
    Method:
    �Production.0� (whole units) . �Production .1� (fractional) / Days = (Average Daily Production) (�Average.0� (whole units) . (Average.1) (fractional)
    � Production.0 (value not calculated)�, � Production 1 (calculated) (event.value = util.printx("0099", (event.value)).substr(-2,2); � �Average.0 (value not calculate)�, and �Average.1 has following calculation:
    var punits = this.getField("Production.0");
    var pfrac = this.getField("Production.1");
    var average = 0.0;
    average = (punits.value + pfrac.value / 100) / this.getField("Days").value;
    this.getField("Average.0").value = average - average % 1;
    this.getField("Average.1").value = util.printx("0099", Math.round((average % 1 * 100))).substr(-2,2);
    �Math.round� appears to be a problem. Also, could you explain the purpose of �0099� . Anyway, why would 154.85 through 154.90 divided by 31 give 4,10. Also, their must be a better way, to find the average daily production. All you have to do is divided the production (whole. fractional) by the days, and display the average daily production as (whole. fractional). Any suggestions??

    There are a many loose ends in your question.
    First, I have never seen before a variable type called 'var'. Is it a java primitive or a class?
    Next, I cannot seem to find any class that has the printx method.
    When it comes to substr(-2,2), I get confused. First, I thought that it was a method of the String class, but I only got as far as substring(beginIndex, endIndex).
    If you really must break the production and average into pieces, try this:
    float average = (punits + pfrac/100) / days;
    int avg_units = (int)average;
    int avg_frac = (int)( (average - avg_units) * 100 );My guess is that util.printx("0099", x) formats x having two optional digits and two mandatory digits, showing 0-99 as 00-99, but allows to show numbers with three and four digits.
    154.85/31 = 4,9951612903225806451612903225806
    154.99/31= 4,9996774193548387096774193548387
    If you round the fraction of theese numbers multiplied by 100 ( = 99.51.. and 99.968...) you get 100, and this will be the output of printx. My guess for "4.10" is that substr(-2,2) returns the two first characters of the string, because the start index should not be zero. (According to java docs, substring throws an exception on a negative index, so what kind of class are you really using ??????)

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • Is there a way to create a math.random that doesn't overlap movieclips?

    Hi,
    Actually I have two questions. I am creating a memory sequence game and I was wondering:
    1. Is there a way to random position movieclips on the stage without having them overlap each other?
    2. Is there  a way to have flash draw a vector line from one clip to another in sequence and then have the user retrace what flash did? I have 6 movieclips on the stage, each with their own instance (ex. obj1_mc, obj2_mc, etc.). Is there a way to tell flash to always draw a line between movieclips in sequence even though the movieclips are randomly placed on the stage?
    Thanks,
    OJ

    sure.
    1.  the easiest way to position objects without over-lapping, IF you can assume it will always be possible, is to use something like:
    var mcA:Array=[your movieclips]
    var index:uint=0;
    positionF();
    function positionF(){
    // assuming top-left reg points of your movieclips
    mcA[index].x=Math.random()*(stage.stageWidth-mcA[index].width);
    mcA[index].y=Math.random()*(stage.stageHeight-mcA[index].height);
    var hitBool:Boolean=false;
    for(var i:int=0;i<index-1;i++){
    if(mcA[index].hitTestObject(mcA[i])){
    hitBool=true;
    break;
    if(hitBool){
    positionF();
    } else {
    index++;
    if(index<mcA.length){
    positionF();
    } else {
    // positioning complete.  do whatever
    2.  you can use the graphics class to draw dynamic lines.

  • How do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    how do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    Welcome to Apple Support Communities
    When you try to copy data to the external drive, what happens? If you don't see any error, the external drive is formatted in NTFS, and OS X can't write in it.
    To be able to write on this external drive, you have to use an app like Paragon NTFS. Another solution would be to format the external drive in FAT32 or exFAT with Disk Utility > http://pondini.org/OSX/DU1.html Make sure you copied all the files of the external disk to the internal disk before doing it

Maybe you are looking for