docs: regenerate site from f094acfdb5
This commit is contained in:
commit
63c5ed9baf
975 changed files with 55427 additions and 0 deletions
22
ns-random.html
Normal file
22
ns-random.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Random — Ludic</title>
|
||||
<meta name="description" content="A seeded, deterministic RNG — same seed, same sequence, every run and every platform.">
|
||||
<link rel="stylesheet" href="base.css">
|
||||
<link rel="stylesheet" href="docs.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="nav"><div class="wrap nav-in"><a class="brand" href="index.html"><span class="logo">L</span> Ludic</a><button class="nav-toggle" aria-label="Toggle menu" aria-expanded="false">☰</button><nav class="nav-links"><a href="index.html">Home</a><a href="api.html">API Reference</a><a class="nav-cta" href="https://git.workshopsoft.io/workshopsoft/ludic">Source ↗</a></nav></div></header>
|
||||
<main class="wrap item">
|
||||
<div class="crumbs"><a href="api.html">API Reference</a> <span>›</span> <span class="here">Random</span></div>
|
||||
<div class="item-head"><span class="kind-badge kind-namespace">namespace</span><h1 id="top">Random</h1></div>
|
||||
<p class="ns-blurb">A seeded, deterministic RNG — same seed, same sequence, every run and every platform.</p>
|
||||
<div class="ns-methods"><a class="ns-method" href="random-range.html"><code class="nm-sig">Random.range(low, high) -> int</code><span class="nm-tip">A random integer in the inclusive range [low, high].</span></a><a class="ns-method" href="random-chance.html"><code class="nm-sig">Random.chance(percent) -> bool</code><span class="nm-tip">Return true with the given percent probability.</span></a><a class="ns-method" href="random-seed.html"><code class="nm-sig">Random.seed(value)</code><span class="nm-tip">Seed the random generator so runs are reproducible.</span></a><a class="ns-method" href="random-value.html"><code class="nm-sig">Random.value() -> fixed</code><span class="nm-tip">A random fixed value in [0, 1).</span></a><a class="ns-method" href="random-int.html"><code class="nm-sig">Random.int(max) -> int</code><span class="nm-tip">A random integer in [0, max).</span></a><a class="ns-method" href="random-sign.html"><code class="nm-sig">Random.sign() -> int</code><span class="nm-tip">A random +1 or -1.</span></a><a class="ns-method" href="random-weighted.html"><code class="nm-sig">Random.weighted(weights: []int) -> int</code><span class="nm-tip">An index drawn in proportion to its weight.</span></a></div>
|
||||
<a class="back" href="api.html">← All symbols</a>
|
||||
</main>
|
||||
<script src="ludic-highlight.js"></script>
|
||||
<script>Ludic.installCards(); Ludic.flashTarget();</script>
|
||||
</body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue