[
  {
    "modelParams": {
      "name": "Tokens puzzle",
      "description": "3 tokens in a hat: One with both sides blue. One with both sides red. One with one side blue and the other side red. I pull one token from the hat, put it on the table: its face is blue. What is the probability that its back is also blue?",
      "steps": 1,
      "method": "rejection",
      "include": []
    },
    "blocks": [
      {
        "id": "b10336432",
        "name": "Tokens",
        "show": false,
        "type": "Data",
        "typeCode": 2,
        "useAsParameter": false,
        "dims": "",
        "value": "[[\"Red\",\"Red\"] , [\"Red\",\"Blue\"] , [\"Blue\",\"Blue\"]]",
        "units": "",
        "dataType": "",
        "dataCategories": "",
        "minimized": false,
        "pos": {
          "x": -44,
          "y": -98
        }
      },
      {
        "id": "b41632979",
        "distribution": "RandomInteger",
        "name": "RandomToken",
        "once": false,
        "params": {
          "n": "3"
        },
        "show": false,
        "type": "Random Variable",
        "typeCode": 0,
        "dims": "1",
        "units": "",
        "minimized": false,
        "pos": {
          "x": 13,
          "y": 90
        }
      },
      {
        "id": "b8257433",
        "distribution": "RandomInteger",
        "name": "RandomSide",
        "once": false,
        "params": {
          "n": "2"
        },
        "show": false,
        "type": "Random Variable",
        "typeCode": 0,
        "dims": "1",
        "units": "",
        "minimized": false,
        "pos": {
          "x": -6,
          "y": 6
        }
      },
      {
        "id": "b79175433",
        "name": "SelectedFaceColor",
        "history": false,
        "show": false,
        "type": "Expression",
        "typeCode": 1,
        "value": "Tokens[RandomToken][RandomSide]",
        "units": "",
        "minimized": false,
        "pos": {
          "x": 91,
          "y": -36
        }
      },
      {
        "id": "b51088815",
        "type": "Condition",
        "typeCode": 5,
        "value": "SelectedFaceColor == \"Blue\"",
        "minimized": false,
        "pos": {
          "x": 201,
          "y": -109
        }
      },
      {
        "id": "b6845909",
        "name": "SelectedBackColor",
        "history": false,
        "show": true,
        "type": "Expression",
        "typeCode": 1,
        "value": "Tokens[RandomToken][1 - RandomSide]",
        "units": "",
        "minimized": false,
        "pos": {
          "x": -111,
          "y": 23
        }
      }
    ],
    "methodParams": {
      "chains": 1,
      "samples": "100000"
    }
  }
]