<commit_before>﻿using System;

namespace Bearded.Utilities
{
    /// <summary>
    /// This static class offers a variety of pseudo random methods.
    /// The class is threadsafe and uses a different internal random object for each thread.
    /// Note that several of the methods are slightly biased for the sake of performance.
    /// </summary>
    public static class StaticRandom
    {
        #region Threadsafe random
        [ThreadStatic]
// ReSharper disable once InconsistentNaming
        private static Random _random;

        /// <summary>
        /// The thread safe instance of Random used by StaticRandom
        /// </summary>
        private static Random random { get { return _random ?? (_random = new Random()); } }

        /// <summary>
        /// Overrides the Random object for the calling thread by one with the given seed.
        /// </summary>
        /// <param name="seed">The seed</param>
        public static void SeedWith(int seed)
        {
            _random = new Random(seed);
        }<commit_msg>added remark about where to find implementations to StaticRandom<commit_after>using System;

namespace Bearded.Utilities
{
    /// <summary>
    /// This static class offers a variety of pseudo random methods.
    /// The class is threadsafe and uses a different internal random object for each thread.
    /// Note that several of the methods are slightly biased for the sake of performance.
    /// </summary>
    /// <remarks>The actual implementations of the custom random methods can be found in RandomExtensions.</remarks>
    public static class StaticRandom
    {
        #region Threadsafe random
        [ThreadStatic]
// ReSharper disable once InconsistentNaming
        private static Random _random;

        /// <summary>
        /// The thread safe instance of Random used by StaticRandom
        /// </summary>
        private static Random random { get { return _random ?? (_random = new Random()); } }

        /// <summary>
        /// Overrides the Random object for the calling thread by one with the given seed.
        /// </summary>
        /// <param name="seed">The seed</param>
        public static void SeedWith(int seed)
        {
            _random = new Random(seed);
        }
{'fraction_non_alphanumeric': 0.08965823346648913, 'fraction_numerical': 0.0, 'mean_word_length': 2.2292263610315186, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '85567', 'n_tokens_mistral': 539, 'n_tokens_neox': 526, 'n_words': 237}