Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6879


Ignore:
Timestamp:
10/06/11 11:03:34 (13 years ago)
Author:
mkommend
Message:

#1653: Renamed MersenneTwister.Seed to uppercase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Random/3.3/MersenneTwister.cs

    r5445 r6879  
    7575    /// </summary>
    7676    public MersenneTwister() {
    77       if (!init) seed((uint)DateTime.Now.Ticks);
     77      if (!init) Seed((uint)DateTime.Now.Ticks);
    7878      init = true;
    7979    }
     
    8484    /// <param name="s">The seed with which to initialize the random number generator.</param>
    8585    public MersenneTwister(uint s) {
    86       seed(s);
     86      Seed(s);
    8787      init = true;
    8888    }
     
    9292    /// <param name="array">The seed array with which to initialize the random number generator.</param>
    9393    public MersenneTwister(uint[] array) {
    94       seed(array);
     94      Seed(array);
    9595      init = true;
    9696    }
     
    110110    public void Reset() {
    111111      lock (locker)
    112         seed((uint)DateTime.Now.Ticks);
     112        Seed((uint)DateTime.Now.Ticks);
    113113    }
    114114    /// <summary>
     
    118118    public void Reset(int s) {
    119119      lock (locker)
    120         seed((uint)s);
     120        Seed((uint)s);
    121121    }
    122122
     
    176176    /// </summary>
    177177    /// <param name="s">A starting seed.</param>
    178     public void seed(uint s) {
     178    public void Seed(uint s) {
    179179      state[0] = s & 0xFFFFFFFFU;
    180180      for (int i = 1; i < n; ++i) {
     
    188188    /// </summary>
    189189    /// <param name="array">A starting seed array.</param>
    190     public void seed(uint[] array) {
    191       seed(19650218U);
     190    public void Seed(uint[] array) {
     191      Seed(19650218U);
    192192      int i = 1, j = 0;
    193193      for (int k = ((n > array.Length) ? n : array.Length); k > 0; --k) {
Note: See TracChangeset for help on using the changeset viewer.