Libx Wren Documentation

    0.4.0 Latest
    Apr 9, 2021
    Fixed release publication date
    English Current

    Documentation

    • Language and VM guides
      • Wren overview
      • Getting Started
      • Syntax
      • Values
      • Lists
      • Maps
      • Method Calls
      • Control Flow
      • Variables
      • Classes
      • Functions
      • Concurrency
      • Error Handling
      • Modularity
      • Modules
      • Embedding
      • Slots and Handles
      • Calling C from Wren
      • Calling Wren from C
      • Storing C Data
      • Configuring the VM
      • Performance
      • Q & A
      • Contributing
    • English original references
      • Bool Class (English original)
      • Class Class (English original)
      • Fiber Class (English original)
      • Fn Class (English original)
      • List Class (English original)
      • Map Class (English original)
      • Null Class (English original)
      • Num Class (English original)
      • Object Class (English original)
      • Range Class (English original)
      • Sequence Class (English original)
      • String Class (English original)
      • System Class (English original)
      • Module "meta" (English original)
      • Meta Class (English original)
      • Module "random" (English original)
      • Random Class (English original)
      • Original MIT licence

    Module "random" (English original)

    This module provides a simple, fast pseudo-random number generator.

    It is an optional module. You can omit it from your application by setting the preprocessor constant WREN_OPT_RANDOM to 0.

    It contains a single class:

    • Random
    Previous
    Meta Class (English original)
    Next
    Random Class (English original)

    Source and editorial notes

    Canonical language

    This document is "Wren 0.4.0 documentation" by Robert Nystrom and Wren contributors, formatted for libx.

    Source
    Wren 0.4.0 documentation
    Upstream version
    0.4.0
    License
    MIT
    Open originalMITLicense

    Positional wording in editorial notes (above or below) refers to the original location in the document. Follow the section link to read it in context.

    Page source details

    Wren 0.4.0; fixed commit 4a18fc489f9ea3d253b20dd40f4cdad0d6bb40eb. By Robert Nystrom and Wren contributors. Unofficial Libx edition: complete English originals (41 articles and MIT licence), Japanese translation of 24 language/VM/use guides, 17 API originals untranslated. Original MIT notice.

    Wren 0.4.0の固定原文を静的に提供します。言語・VM・利用ガイド24ページが日本語訳の対象で、API 17ページは未翻訳の英語参照です。Libxの運用方針に基づき、見出し・内部リンク・静的な図表を調整しています。CLI・ブログ・実行デモ等は原典へのリンクで案内します。版の日付は0.4.0の公開記録です。

    Editorial notes on the source

    原著に残る未執筆・説明不足も保持しています。ClassesのTODOと不完全な例、組み込み/モジュールの説明や設定例の不整合は、固定版の原典と公開ヘッダー原文を参照してください。Metaモジュールの原API 2ページはTODOで未執筆です。Libxは欠けた説明を補作せず、元の例の実行や原著全体の技術的正しさを保証していません。

    Original TODOs/incomplete examples remain in Classes and Meta API. Embedding/module prose and configuration examples have known inconsistencies; consult the fixed original and public header. The unresolved performance script is omitted while its fixed tables and bars are retained. Example programs are not executed by this edition.

    Page source details

    Libx編集用ソース一式(ZIP) / Editable Libx source:固定原文45ファイル、英語42ページ・非公式日本語訳24ガイドの編集原稿、再生成入力、原通知、共有ビルドコードと再構築手順を含みます。API 17ページは未翻訳の英語原文です。各ファイルの原条件を参照してください。