{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "reference:random:c-api",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Access to various distributions below is available via Cython or C-wrapper libraries like CFFI. All the functions accept a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "bitgen_t"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as their first argument.  To access these from Cython or C, you must link with the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "npyrandom"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " static library which is part of the NumPy distribution, located in "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy/random/lib"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Note that you must "
            },
            {
              "__type": "Emphasis",
              "__tag": 4047,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "also"
                }
              ]
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " link with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "npymath"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", see "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "linking-npymath",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "reference:c-api:coremath"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "See "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "extending",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "extending"
              },
              "kind": "docs"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for examples of using these functions."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The functions are named with the following conventions:"
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "\"standard\" refers to the reference values for any parameters. For instance   \"standard_uniform\" means a uniform distribution on the interval "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "0.0"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " to   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "1.0"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "\"fill\" functions will fill the provided "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "out"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "cnt"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " values."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The functions without \"standard\" in their name require additional parameters   to describe the distributions."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Functions with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "inv"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " in their name are based on the slower inverse method   instead of a ziggurat lookup algorithm, which is significantly faster. The   non-ziggurat variants are used in corner cases and for legacy compatibility."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Generate a single integer"
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Generate random uint64 numbers in closed interval [off, off + rng]."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "C API for random"
        }
      ],
      "level": 0,
      "target": null
    }
  ],
  "local_refs": []
}