Random quote generator

Does anyone know of a random quotes generator plug-in/applescript or another way to generate random quotes on one's calendar?

Thanks Don. That helps just a bit.
However, while I appreciate the sample page of randomizing,
and although I reviewed the code, I would still like to be able to
simply use the WYSIWYG setup through DreamWeaver.
Again, Its more the just randomly displaying the list. Its
making sure I can apply separate CSS to the quote and the name and
making sure the name stays with the quote.
I basically just need to know that I wrote the XML sheet
correctly, what XML items to choose in the data set window along
with what functionality to set and whether or not I have to write
extra code in addition.
I do appreciate your response.

Similar Messages

  • Is there a way to create a random text generator in AE 4 ?

    Hi all,
    I'm a new user of an old version of After Effects 4.1 on Windows 7.
    I just gained the help on this forum to create a digital clock countdown with the Numbers Effect and the Timecode 30 setting in AE 4 and I noticed that there is a random numbers generator in that effect too.
    But now I'm in the Text Effect and I'm able to put my text/title on the solid layer in a composition and apply some MM scripts to the text... mainly I've just been able to use the 'Blink' script and manipulate that script a little to make it flash faster or slower.
    Since AE 4 cannot use .jsx scripts or Expressions, I guess I'm limited to MM scripts (which I've been searching for) and the built-in plug-ins and effects... but I can't find a random text generator... like where the text scrambles as if it is trying to break a code.  This effect that I'm trying for would be similar to a scrambled text effect generated in Swish or other FLASH text effect generators.
    So if anyone knows how to create a scrambled or random text effect in the old After Effects 4.1, please let me know.
    Thanks allot,
    digi

    Thanks guys,
    Yes, I'm using AE 4.1, per my explanation in my other posts about the timecode effect and codecs.
    Since there is a built-in random number generator in AE 4.1 that is part of the Numbers Effect, I thought there may still be an after market Effect, plug-in or mm script for a random text generator.
    I've been searching the web, but its a big place.
    Thanks,
    digi

  • Plot xy graph using random number generator

    How do i plot xy graph dynamically every 5 seconds with a random number generator?
    X axis : Time
    Y Axis : Random number generator

    I've done tis so far. im able to plot dynamically every 1 second.
    but the problem i am facing is The X axis display every 1 second.
    i want it to be fixed 24 hours time format, and the data will gradually plots the data on y axis against x axis every one second, without changing the scale of the x axis (24hour time format)

  • Random Quotes

    I want to have a random quote (chosen from a separate file)
    displayed on our site that changes on a daily basis. I have about
    100+ quotes that are in a already in a HTML file using a table. Do
    they need to be in a different format eg SQL file.
    How do I get it to place one quote in a certain place, and
    choose a new quote the next day all automatically? I have seen SSI
    in use, but I'm not sure if this can do what I want.
    If anybody has a way to do this with very little input after
    it's set up I would really appreciate it.
    Thanks
    Pakman

    Put the script on your page, it will produce a random quote
    each time the
    page is loaded.
    Place linked text between <a href=http://www.google.com
    and </a> like so:
    Quotation[0] = "<a href=http://www.google.com>Truth is
    beauty;</a>
    beauty,truth";
    Quotation[1] = "The time has come, <a
    href=http://www.yahoo.com>the Walrus
    said</a> to speak of many things";
    If this isn't robust enough, there a many more scripts
    available at dynamic
    drive. This one uses Ajax to rotate include files.
    http://www.dynamicdrive.com/dynamicindex17/ajaxrotate.htm
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    A child of five would understand this. Send someone to fetch
    a child of
    five.
    -- Groucho Marx (1890 - 1977)
    "Pakman36" <[email protected]> wrote in
    message
    news:g230ib$irm$[email protected]..
    > Hi Nancy
    >
    > This looks great, but I need the quote to automatically
    display on the
    page at
    > the start of each day rather than having the end user
    'Clicking' the
    button!
    > and the quotes have a book title with the appropriate
    link contained in
    them.
    > Can the quotes have a link in the script?
    >

  • Quote Generator Using Flash 8

    I am trying to build a Quote generator. The idea is that when
    consumers change their selection (from a check box or a Combo Box)
    the text in a Text field or Dynamic text box would change to
    reflect the updated price of the Job.
    I.E. SHIRTS Long sleeve=$10 Short Sleeve=$5 PANTS Jeans=$7
    Shorts=$3 If Shirts is set as Long sleeve and Pants are set as
    Jeans the Result box shows $17. If the Consumer selects Shorts
    instead of Jeans it automatically show $13 in the Result box.
    I am able to do addition with component values through action
    script and have them reflected in a Dynamic Text box, However when
    the selection in a combo box changes (thus their value should
    change) the content of the Dynamic Text box does not update. It
    always shows the initial sum of the values of the added component
    boxes.
    I have also come at this through component binding and
    schema. I can get the values of Combo boxes to be reflected in Text
    fields, and when the selection of the combo box changes the value
    shown in the Text field updates automatically. However I have not
    found a way to get the text field to show the SUM of two different
    component boxes. When I link two component boxes to the same text
    field the value shown in that text field is the value of whatever
    the most recently used combo box value is. (It over writes rather
    than adding).
    If any one could help me get this Quote engine working,
    through action script, or Bindings or Schemas, or a combination of
    both I would really appreciate it. If anyone could direct me to
    where I could find information on what I am trying to do I would
    really appreciate it.
    Action Script Version: Action Script 2
    Product version: Flash Professional 8
    Product: Flash
    Version: Professional 8
    Platform information: Mac
    Hardware: G4
    OS Version: Tiger
    RAM: 2G

    Eilmer,
    > Are you saying that I can have both Flash 8 and Flash
    CS3
    > installed, and then use the one I want?
    If you have a user license for both applications, then yes.
    > I was thinking I'd just use Flash 8 until this project
    was
    > over, and then replace it with Flash CS3.
    Either way would work. But again, make sure you're licensed
    to use both
    applications. If you paid the upgrade price, for example,
    then you might be
    obliged by the EULA to uninstall Flash 8. From a technical
    standpoint, you
    can install more than one version of the Flash IDE. From a
    licensing
    standpoint, your best bet is to give Adobe a quick phone
    call.
    David
    [email protected]

  • Random Password Generator

    Hi everyone, I made this Password Generator that does what I want, but I'd like to extend its functionality. Right now it creates a random password from an array of letters and numbers.
    import java.io.*;
    import javax.swing.*;
    import java.util.*;
    *Version 0.1:
    *creates several random passwords using numbers,
    *uppercase and lowercase letters
    *Version 0.2:
    *add a save feature
    public class PasswordGeneratorV02
        public static void main(String[] args)
             * Define all variables and create all objects here
            // create the Number and Letter arrays
            Integer[] numberList = new Integer[10];
            String[] letterList = new String[12];
            //Variable to continue the while loop
            Boolean cont = true;
            //Scanner used to continue or not
            Scanner input = new Scanner(System.in);
            //Stores the user input
            String answer;
             * End variables
            //fill the letterList array
            //need to find a more efficient way to do this
            //and add all the letters of the alphabet
            letterList[0] = "a";
            letterList[1] = "F";
            letterList[2] = "c";
            letterList[3] = "R";
            letterList[4] = "y";
            letterList[5] = "O";
            letterList[6] = "p";
            letterList[7] = "W";
            letterList[8] = "q";
            letterList[9] = "n";
            letterList[10]= "E";
            letterList[11]= "w";
            // fill it with numbers 0-9
            for (int i=0; i < numberList.length; i++)
                numberList= i;
    // make both arrays lists so we can shuffle them
    List list = Arrays.asList(numberList);
    List list2 = Arrays.asList(letterList);
    //Start the output to user
    System.out.println("Welcome to the random password generator!");
    System.out.println("This program will create a random 20 character alphanumeric password.");
    System.out.println();
    //Shuffles the array contents then prints it out.
    while(cont == true)
    // shuffle the list
    Collections.shuffle(Arrays.asList(numberList));
    Collections.shuffle(Arrays.asList(letterList));
    // print out the shuffled array contents
    for (int i : numberList)
    System.out.print(i + letterList[i]);
    System.out.println();
    System.out.println("Press Enter for a new password. Q to quit.");
    answer = input.nextLine();
    //check to see if user wants to quit
    if(answer.equalsIgnoreCase("q"))
    cont = false;
    System.out.println("Goodbye...");
    }I would like to change/add two things.
    1st, I want to change the array of letters to include the full alphabet(lower and uppercase), with out having to type it in.
    2nd, I would like to add a save feature where the user types in "S" at the prompt and it will allow them to save the password as a text file.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok well, I googled around and found something.
    The output now displays letters, but it no longer shuffles them around. For example:
    6A8B7C4D2E0F5G1H3I9J
    Every letter is just the next letter in the alphabet. How would I shuffle an array of chars?
    New code:
    import java.io.*;
    import javax.swing.*;
    import java.util.*;
    *Version 0.1:
    *creates several random passwords using numbers,
    *uppercase and lowercase letters
    *Version 0.2:
    *add a save feature
    public class PasswordGeneratorV02
        public static void main(String[] args)
             * Define all variables and create all objects here
            // create the Number and Letter arrays
            Integer[] numberList = new Integer[10];
            char[] letterList = "ABCDEFGHIJKLMNOPQRSTUWVXYZabcdefghijklmnpqrstuvwxyz".toCharArray();
            //Variable to continue the while loop
            Boolean cont = true;
            //Scanner used to continue or not
            Scanner input = new Scanner(System.in);
            //Stores the user input
            String answer;
             * End variables
            // fill it with numbers 0-9
            for (int i=0; i < numberList.length; i++)
                numberList= i;
    // make both arrays lists so we can shuffle them
    List list = Arrays.asList(numberList);
    List list2 = Arrays.asList(letterList);
    //Start the output to user
    System.out.println("Welcome to the random password generator!");
    System.out.println("This program will create a random 20 character alphanumeric password.");
    System.out.println();
    //Shuffles the array contents then prints it out.
    while(cont == true)
    // shuffle the list
    Collections.shuffle(Arrays.asList(numberList));
    Collections.shuffle(Arrays.asList(letterList));
    // print out the shuffled array contents
    for (int i=0;i<numberList.length;i++)
    System.out.print(numberList[i] + String.valueOf(letterList[i]));
    System.out.println();
    System.out.println("Press Enter for a new password. Q to quit.");
    answer = input.nextLine();
    //check to see if user wants to quit
    if(answer.equalsIgnoreCase("q"))
    cont = false;
    System.out.println("Goodbye...");

  • Java random number generator

    Hi does java have a random number generator. If it does can you point me to it please. Thank you.

    you can use "java.Math.random()" this function returns a value which is greater than or equal
    to 0.0 and less than 1.It returns a double value,so you can multiply by 10 and cast it to int,so that it
    can produce numbers between 0 & 9.Yes, you can do that. But, as stated before, java.util.Random has methods that are easier to use for random int values than using java.Math.random is for random int values. It all depends what the OP wants. The OP hasn't come back with additional questions, or to say that he found his answer. So, we don't know whether he has his answer (he has several options now!) or not. :)

  • I'm trying to create a random color generator

    //               create random color generator
                        String[]colors = {"RED", "ORANGE", "YELLOW", "GREEN", "BLUE", "INDIGO", "PURPLE"};
    //               create variable to store random color
                        int mycolorint = (int)(Math.random()*7);
                        String mycolor = colors[mycolorint];
    //               label axis
                   StdDraw.setPenColor(StdDraw.(mycolor));
    what is wrong with this code?

    StdDraw.setPenColor(StdDraw.(mycolor));This line really doesn't make any sense. If you think about it you haven't seen any java code which includes something like "foo.(bar)" or "Foo.(bar)". The compiler wants to see identifiers either side of the dot - and identifiers don't start with a (.
    I am guessing that if "RED" gets chosen from the array, then you want the label axis to useStdDraw.setPenColor(StdDraw.RED);In that case you have to set the array up a little differently.
        // create random color generator
    ???[]colors = {
            StdDraw.RED, StdDraw.ORANGE, StdDraw.YELLOW,
            StdDraw.GREEN, StdDraw.BLUE, StdDraw.INDIGO, StdDraw.PURPLE
        // create variable to store random color
    int mycolorint = (int)(Math.random() * 7);
    ??? mycolor = colors[mycolorint];
        // label axis
    StdDraw.setPenColor(mycolor);You will have to read the documentation for this StdDraw class to see what type StdDraw.RED etc are.

  • Random event generator

    I'm in the middle of making a simple game with java and am just wanting to ask what class/method would be best for some kind of random event generator. What i'm looking for is for a pool of ten or so events to occur at random over a given time frame that won't overlap with each other (so only one event happens at a time). The time between events should also be random (3 secs, event, 5 secs, event, 1 sec, event, etc.).
    Any suggestions?

    Make the events all implement java.lang.Runnable.
    Put them in an array or java.util.List<Runnable>.
    Have a loop, probably in its own thread. Before the loop starts, instantiate a java.util.Random. One each run through the loop:
    1) use Random.nextInt to get an index into the array or List.
    2) get the Runnable object.
    3) invoke run() on it.
    4) use the Random to get a random number of milliseconds in whatever range you want
    5) Thread.sleep for that number of milliseconds.

  • Random Rhythm Generator

    Hi.. Just wondering whether anyone knows of a method to produce RANDOM midi patterns (rhythms) within Logic Pro 8. In fact any Random Rhythm generator for MIDI would be so very handy.
    Control over note values and generated complexity would be a bonus.
    Many thanks,
    Orph

    It might be possible to use the Transform window (⌘4) for that, although I don't know if it can randomize positions.
    HTH
    Regards, Erik.

  • Random name generator

    Does anyone know how to make a random name generator or have
    any links to pages that could help me?
    Thanks for your time
    Jason

    Something just like the name generator on
    http://www.rftc.com/
    It doesn't seem complex but Im not sure how to do it :S
    Thanks for your time

  • Random Num Generator

    Hi,
    Having difficulty with a random number generator used to populate a text box.
    var randGen:Number;
    function rand(minNum:Number=1, maxNum:Number=3):Number
        return rand = (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
    if (randGen = 1){
        wordT.text = ("hello");
    else if (randGen = 2){
        wordT.text = ("goodbye");
    else{
    wordT.text = ("friend");
    This script seems to always produce "hello" and never the other 2 options.
    Must be doing something wrong.
    Any help appreciated.

    The code if off in several ways.
    1. rand is function and variable. AS3 doesn't allow for duplicate properties names.
    2. Keyword "return" stops function execution. Nothing is processed after return is used.
    Try:
    updateText();
    function rand(minNum:Number = 1, maxNum:Number = 3):int
        return Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;
    function updateText():void {
        switch(rand()) {
            case 1:
                wordT.text = "hello";
                break;
            case 2:
                wordT.text = "goodbye";
                break;
            case 3:
                wordT.text = "friend";
                break;

  • Random Number Generator setSeed(); method???

    I've searched and can't get a good understanding of the setSeed() method. I am suppose to use the loop control variable to seed the random number generator inside the loop. I need to use the same input everytime I use the random generator. When I compile it says int cannot be dereferenced.
    for(int i = 0; i < array.length; i++)
    int randnum = generator.nextInt(100);
    randnum.setSeed(i);
    array[i] = randnum;
    If anyone can explain the setSeed() method that would be greatly appreciated. Thanks!

    badbro wrote:
    Thanks for your help, but leave the smart comments to yourself. They are not needed. Thats what this forum is for.All of Paul's comments were dead spot on, and if you listen to him and take his advice to heart, it will only help you. If they make you upset, well then that's your problem, isn't it? My advice: grow up.

  • Random Number Generator issues

    Ok so I have an issue. I'm supposed to create a GUI app that has a frame that contains both a button and a textfield. When the button is pressed then a random number between 1 and 10 should appear in the textfield. I've got an illegal start of expression on line 49 which is the last private void...
    So what have I done wrong?
    * randomnumber.java
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    public class randomnumber extends JFrame
         Random randomObject = new Random();
      // declare controls used
      static JButton startButton = new JButton();
      static JTextField startTextField = new JTextField();
      public static void main(String args[])
        new randomnumber().show();
      public randomnumber()
        // frame constructor
        setTitle("Random Number Generator");
        getContentPane().setLayout(new GridBagLayout());
        // add controls
        GridBagConstraints gridConstraints = new GridBagConstraints();
        startButton.setText("Generate a Number");
        gridConstraints.gridx = 0;
        gridConstraints.gridy = 0;
        getContentPane().add(startButton, gridConstraints);
        startButton.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent e)
            startButtonActionPerformed(e);
        startTextField.setText("");
        startTextField.setColumns(15);
        gridConstraints.gridx = 2;
        gridConstraints.gridy = 0;
        getContentPane().add(startTextField, new GridBagConstraints());
      private void startButtonActionPerformed(ActionEvent e)
        myInt = randomObject.nextInt(11);
        startTextField.setText(String.valueOf(myInt));
    }Edited by: Hessmix on Oct 17, 2007 6:15 PM

    public randomnumber()
        // frame constructor
        setTitle("Random Number Generator");
        getContentPane().setLayout(new GridBagLayout());
        // add controls
        GridBagConstraints gridConstraints = new GridBagConstraints();
        startButton.setText("Generate a Number");
        gridConstraints.gridx = 0;
        gridConstraints.gridy = 0;
        getContentPane().add(startButton, gridConstraints);
        startButton.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent e)
            startButtonActionPerformed(e);
        startTextField.setText("");
        startTextField.setColumns(15);
        gridConstraints.gridx = 2;
        gridConstraints.gridy = 0;
        getContentPane().add(startTextField, new GridBagConstraints());
      }//<< Add a brace here
      private void startButtonActionPerformed(ActionEvent e)
        myInt = randomObject.nextInt(11);
        startTextField.setText(String.valueOf(myInt));
    }Did you add that brace?

  • Random number generator. Even and odd numbers

    I have a problem.
    I have a random number generator, it goes from 0 to 20, I need to have two indicators, one will show how many numbers are pairs, and how many are not.
    I tried to use the decimated 1D array, but since those numbers are random, it doesn´t work for me. I´m new with LabView, and I don´t know if there is some other way to make it work, I need some help, especially with some examples.
    Thank you so much.
    Solved!
    Go to Solution.

    RavensFan wrote:
    Spoiler (Highlight to read)
    Create the array.  Use quotient remainder to divide by 2.  Now you have an array where all the odd numbers are now 1, and all the even numbers are now 0.  Sum the array and you have the total number of odd numbers.  The number of evens will be the length of the array divided by the # of odds.
    Create the array.  Use quotient remainder to divide by 2.  Now you have an array where all the odd numbers are now 1, and all the even numbers are now 0.  Sum the array and you have the total number of odd numbers.  The number of evens will be the length of the array divided by the # of odds.
    Haha I lost sight of the fact that he was looking for the amount off odds and evens.  Good one.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Maybe you are looking for

  • Perms to specific reports folder in sccm 2012

    Have set up access to certain reports based on security settings in sccm so accounts in specific AD group can access certain sccm reports via ssrs reporting web site.  Utilized the very useful information in the links below.  I have a request for the

  • Poor performance scorecard Internet Explorer

    When using Internet Explorer (8) the performance of the scorecard module ( strategy map, KPI's, watch list) is VERY POOR. Both, when running as end user and also while developing scorecards its very time consuming. In contrast to Firefox. Internet Ex

  • How do I transfer photos and music from IPad to my new computer?

    My initial computer was stolen. I need to transfer back all photos and music from my Ipad to my new computer. All help is appreciated. thanks

  • Tiger NetBoot Questions

    I read through the docs and setup netboot on our new XServe (running 10.4.3) last night. It appears to be basically working, but... 1) I notice that the Server Admin tool -- after an hour or two -- lists the NetBoot Service as "Not Available". Once t

  • New Theme

    Hi all, I have a little problem I cannot understnad. I have created a new theme starting from a template directly on portal (not with NWDS). I saved the theme and in the Theme Editor I can see my own theme and if I click on it I can open and modify i