<commit_before>﻿using UnityEngine;
using System.Collections;
using System;
using System.Reflection;
namespace Lockstep
{
	public static class LSUtility
	{
		public static readonly byte[] EmptyBytes = new byte[0];
		public static readonly FastList<LSAgent> bufferAgents = new FastList<LSAgent>();
		public static readonly FastList<Health> bufferHealths = new FastList<Health>();
		public static readonly FastList<byte> bufferBytes = new FastList<byte>();
        public static readonly FastList<int> bufferInts = new FastList<int> ();

		const uint Y = 842502087, Z = 3579807591, W = 273326509;
		public static uint Seed = 1;
		private static uint y = Y, z = Z, w;

        static LSUtility() {

        }

		public static void Initialize (uint seed)
		{
			Seed = seed;
			y = Y;
			z = Z;
			w = W;
		}

		/*public static uint GetRandom (uint Count)
		{
			Debug.Log ("a");
			uint t = (Seed ^ (Seed << 11));
			Seed = y;
			y = z;
			z = w;
			return ((0xFFFFFFFF & (w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)))) % Count);
		}*/

		public static int GetRandom (int Count)
		{
			uint t = (Seed ^ (Seed << 11));
			Seed = y;
			y = z;
			z = w;
			return (int)((0x7FFFFFFF & (w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)))) % Count);
		}

		public static int PeekRandom (int Count)
		{
			uint cSeed = Seed;
			uint cY = y;
			uint cZ = z;
			uint cW = w;<commit_msg>Implement long GetRandom<commit_after>﻿using UnityEngine;
using System.Collections;
using System;
using System.Reflection;
namespace Lockstep
{
	public static class LSUtility
	{
		public static readonly byte[] EmptyBytes = new byte[0];
		public static readonly FastList<LSAgent> bufferAgents = new FastList<LSAgent>();
		public static readonly FastList<Health> bufferHealths = new FastList<Health>();
		public static readonly FastList<byte> bufferBytes = new FastList<byte>();
        public static readonly FastList<int> bufferInts = new FastList<int> ();

		const uint Y = 842502087, Z = 3579807591, W = 273326509;
		public static uint Seed = 1;
		private static uint y = Y, z = Z, w;

        static LSUtility() {

        }

		public static void Initialize (uint seed)
		{
			Seed = seed;
			y = Y;
			z = Z;
			w = W;
		}

		/*public static uint GetRandom (uint Count)
		{
			Debug.Log ("a");
			uint t = (Seed ^ (Seed << 11));
			Seed = y;
			y = z;
			z = w;
			return ((0xFFFFFFFF & (w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)))) % Count);
		}*/

        public static int GetRandom (int Count = int.MaxValue)
		{
			uint t = (Seed ^ (Seed << 11));
			Seed = y;
			y = z;
			z = w;
			return (int)((0x7FFFFFFF & (w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)))) % Count);
		}

        public static int PeekRandom (int Count = int.MaxValue)
		{
			uint cSeed = Seed;
			uint cY = y;
			uint cZ = z;
			uint cW = w;
{'fraction_non_alphanumeric': 0.13928182807399347, 'fraction_numerical': 0.031193326079071455, 'mean_word_length': 2.835883171070932, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '7427906', 'n_tokens_mistral': 1154, 'n_tokens_neox': 963, 'n_words': 323}