Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Randomising questions within a sequence

edited June 2013 in OpenSesame

Hi, just started using Open Sesame, however have very little experience with this kind of thing!

I want to present a series of problems, which i have successfully created within a sequence as text input responses, however while the program runs fine as a list in the order i created the problems, i would like to run the questions in a randomized order.

I assume this is possible, what is the simplest way??

Comments

  • edited June 2013

    Hi RichardSteel,

    I'm not very experienced either, and depending on what exactly is to be displayed I don't know if I understand you correctly but I hope this helps:
    One way (depending on if you use forms) would be to randomize the colums list like this:


    #create row array and shuffle rows = [3,4,5,6,7] shuffle(rows)

    ...


    form.set_widget(question1, (0,rows[0]),colspan=2) form.set_widget(question2, (0,rows[1]),colspan=2) form.set_widget(question3, (0,rows[2]),colspan=2) form.set_widget(question4, (0,rows[3]),colspan=2) form.set_widget(question5, (0,rows[4]),colspan=2)

    For more info on using forms you can have a look at this:

    http://osdoc.cogsci.nl/forms/form-functions/

    http://osdoc.cogsci.nl/forms/custom-forms/

    Hope this is of some help for you,
    Daniel

  • edited June 2013

    Hi - thanks for the response, however i'm not using forms. What i have is a list of questions contained within a sequence:

    run _text_input_batball "always"
    run _text_input_widget "always"
    run _text_input_lillypads "always"
    etc....
    

    So each question exists on a separate page created using the text input function to create a simple question and answer. All this has been created using the GUI.

    So, what i would like to do is present the text input screens in a random, or shuffled order for each participant.

    is this possible?

  • edited 5:22PM

    Hi Richard,

    Refuzee's example shows how to randomize the order of widgets as they appear on a form. A useful tip for sure, but somewhat different from what you need in this particular situation.

    The order of sequence items cannot be randomized. Only loops can have a random order. So what need is to combine a random-order loop, with 'Run if' statements in a sequence item. First, you create a loop that has a variable [my_item], which specifies the item that you want to run on each cycle, like so:

    image

    In this loop (as item-to-run), you add your sequence. But each time that the sequence is executed, you cherry-pick the item that you actually want to run, like so:

    run _text_input_batball "[my_item] = batball"
    run _text_input_widget "[my_item] = widget"
    run _text_input_lillypads "[my_item] = lillypads"
    

    Does that make sense?

    Cheers!
    Sebastiaan

  • edited 5:22PM

    Yes it makes sense, and works perfectly!

    Many thanks
    Richard

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games