OpenSesame
Rapunzel Code Editor
DataMatrix
Support forum
Python Tutorials
MindProbe
Supported by

SigmundAI.eu can now implement complete psychological experiments in #OpenSesame. From scratch based on verbal description. Astonishing how far #AI has come 😵‍💫 #psychology

[image or embed]

— Sebastiaan Mathôt (@cogsci.nl) Feb 23, 2026 at 3:56 PM

随机功能 (random-ext)

random-ext库以random的形式提供。此库为随机化提供了许多方便的高级功能。

示例:

从一个五乘五的网格中随机抽取一个位置,绘制八个随机颜色的圆形:

let positions = xy_grid(5, 50)
positions = random.subArray(positions, 8)
const cnv = Canvas()
cnv.fixdot()
for (const [x, y] of positions) {
    cnv.circle({x: x, y: y, r: 20, fill: true, color: random.color()})
}
cnv.show()

有关概述,请参见: