Howdy, Stranger!

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

Supported by

[solved] ranomization problem

edited April 2012 in OpenSesame

Hi Sebastiaan,

First of all, thank you for this program. I'm pretty new at this and I have a problem with randomization. I hope I didn't miss an appropriate discussion, if so, please post the link.
I have, let's say a "big loop" which contains two "small ones". I want the experiment to loop over the small ones in a randomized order and the random-button doesn't work with this. I am pretty much at a loss by now, 'cause it works well with the trials within the small loops and nothing seems to help with this question. I already tried to do some inline-script stuff, but without succeeding.

Hope, you or someone else can give me a hint.

Thanks in advance,

regards, Caroline

Comments

  • edited 6:47AM

    Hi Caroline,

    So you have a structure somewhat like this, right?

    big_loop
    - big_sequence
    - - small_loop
    - - - small_sequence

    And you want the big_loop to run the big_sequence in randomized order. Do I understand that correctly? If so, it should work simply by setting order of big_loop to random.

    If this doesn't work for you, or if I have misunderstood the question, please let me know!

    Cheers,
    Sebastiaan

  • edited April 2012

    Thanks for the quick reply, Sebastian. I guess you misunderstood me a little or I didn't explain too well. My structure is the following:

    big_loop
    - big_sequence
    -- small_loop 1
    --- small_sequence 1
    --small_loop 2
    --- small_sequence 2

    and I want small_sequence 1 and small_sequence 2 randomized, so it looks approximately like this:

    small_sequence 2
    small_sequence 1
    small_sequence 2
    small_sequence 2
    small_sequence 1
    small_sequence 2
    ...

    At the moment the structure of small_sequence 1 and 2 is alternating.
    In the end, I want to show each sequence 5 times in randomized order. The thing is, that the big_loop is already set to random and it doesn't work somehow. Hope you can tell me what I did wrong.

    Regards, Caroline

  • edited 6:47AM

    Ah, I see now. The easiest way to achieve this is probably to add a variable myorder to the big_loop with the values 1 and 2. Then you add the two possible orders to the big_sequence with conditional statements, like so:

    big_sequence
    - small_loop_1 (run if '[myorder] = 1')
    - small_loop_2 (run if '[myorder] = 1')
    - small_loop_2 (run if '[myorder] = 2')
    - small_loop_1 (run if '[myorder] = 2')

    Does that make sense? I added a simple example as a gist on GitHub: link

  • edited 6:47AM

    Yes it does. thanks so much!

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