File:Linear congruential generator visualisation.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 512 × 171 pixels, file size: 30 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Visualisation of generation of pseudo-random numbers in [0, 8] using a linear congruential generator. The top two rows show a generator with m = 9, a = 2 and c = 0 outputting numbers from left to right. A seed of 1 gives a cycle length of 6 but a seed of 3 gives a cycle length of only 2. Using a = 4 and c = 1 (bottom row) gives a full cycle length of 9 with any seed.
    Español: Visualización de la generación de números pseudoaleatorios en [0, 8] mediante un generador congruencial lineal. Las dos filas superiores muestran un generador con m = 9, a = 2 y c = 0, que genera números de izquierda a derecha. Una semilla de 1 da una longitud de ciclo de 6, pero una semilla de 3 da una longitud de ciclo de solo 2. Utilizando a = 4 y c = 1 (fila inferior), se obtiene una longitud de ciclo completa de 9 con cualquier semilla.
    Source Own work
    Author Cmglee

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current02:05, 28 March 2015Thumbnail for version as of 02:05, 28 March 2015512 × 171 (30 KB)wikimediacommons>CmgleeLabel arrows.

    There are no pages that use this file.