actionscript math ramndom?

Posted on 2004-11-07
Last Modified: 2010-05-18
Sorry but last time forgot 2 put points for my dear helping Expert!
Here is the question and my code.
The question is that Im tryng to build an educational quiz with a set amount of questions to be outputted! How do I make sure that the same question is not repeated and that once il questions are put forward the program exits?
Here is my initial code. Hope u can help me would be very educational 4 me
Many thanks! (hope I havent been mean with the points! I think it may be easy 4 an expert!)

words=["Which is the capitol of Italy?","Which is the capitol of Spain?","Which is the capitol of France?","Which is the capitol of Holland?"];
Question by:andreafp
    1 Comment
    LVL 84

    Accepted Solution

    in Perl:
               # fisher_yates_shuffle( \@array ) :
               # generate a random permutation of @array in place
               sub fisher_yates_shuffle {
                   my $array = shift;
                   my $i;
                   for ($i = @$array; --$i; ) {
                       my $j = int rand ($i+1);
                       @$array[$i,$j] = @$array[$j,$i];

               fisher_yates_shuffle( \@array );    # permutes @array in place

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    EvenOdd challenge 10 67
    sumHeights  challenge 17 50
    factorial example challenge 10 44
    java  and programming certification ? 4 27
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    A short article about problems I had with the new location API and permissions in Marshmallow
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now