Snippets tagged random

  • Form changing color

    Windows Forms tutorial showing how to create form with button and how to register an event handler. When the button is clicked, the form changes its background color.

    48 people like this

    Posted: 13 years ago by Tomas Petricek

  • Gaussian Random Sequence

    Normalized Random sequence generator conforming to the user supplied mean and sigma utilizing a "seed factory" instead of the default time of day. The Gaussian sequence is based on the central limit theory, averages together the flat distribution from the random generator built into .NET. Two examples of using normalRand are given to create infinite sequences of white and brown(ian) noise.

    45 people like this

    Posted: 13 years ago by Tony Lee

  • Array Shuffle

    Shuffling array using Seq.fold

    6 people like this

    Posted: 10 years ago by Karlkim Suwanmongkol

  • Magic 8 Ball

    Magic 8 Ball in your console/terminal

    2 people like this

    Posted: 8 years ago by Fabio Galuppo

  • PCG 32bit RNG

    I have tested this against the C code I compiled on the PCG website ( It seems to work fine. Nothing special, I just really loathe System.Random. Why has the de-facto RNG for the .NET library not been updated?

    3 people like this

    Posted: 5 years ago by Krunoslav Saho

  • Similar string Markov chain

    Generates strings that are similar to the input, as measured by the probability of a symbol depending on preceding symbols. (Markov chain) The order, which defines how many preceding symbols to look at before placing another, is variable.

    2 people like this

    Posted: 2 years ago by Vandroiy