Model
Parameters
No model.js yet? Start at carolynjfu.com/sim-setup: describe your model in five questions and get the prompt to give your AI assistant, which writes the model.js.
🔒 Only you can see the model you load here. It runs in your browser and is not uploaded; anyone else who opens this URL still sees the built-in example. The one exception: if you make a permalink, anyone you give it to can open your model too.
Paste the whole model.js that your AI assistant wrote, or choose the file. This page remembers the pasted model in this browser until you press “Use built-in model”.
Run automatically when a model loads. A failing line is something to paste back to your AI assistant, together with the question “please fix this”.
- Anyone who has the permalink can open your model, run it and read its code. Nobody can find it without the permalink, and the page still shows everyone else the built-in example.
- You cannot delete it yourself. It stops working a year after it was first made. To have it removed sooner, ask your instructor.
- It is a snapshot. The permalink always opens this exact version; if you change your model, make a new permalink.
- Only the model code is stored: not your name, your answers or your results.
This permalink opens a model written by whoever shared it. It runs only in your browser; nothing is sent anywhere.
What the model's code does, step by step in plain words, written with the code. Download zip saves it as PSEUDOCODE.txt.
Runs the model many times at the parameters set on the left and saves everything in one zip: the model code and this page (unzip and open index.html to run it again), every run period by period, the mean and spread per period, each run's final values, the charts as images and the settings and seed. Nothing is uploaded; the zip is made in your browser. A number typed in the seed box is used as the base seed; otherwise a new one is drawn and recorded.
model.js from a folder on your computer by itself. To include the code, choose the file: