This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| System.IndexOutOfRangeException: ReadWriteBuffers are restricted to only read & write the element at the job index. You can use double buffering strategies to avoid race conditions due to reading & writing in parallel to the same elements from a job. | |
| This Exception was thrown from a job compiled with Burst, which has limited exception support. | |
| #3 burst_abort(char const*, char const*) | |
| #4 Unity.Collections.NativeArray1[[Unity.Transforms.LocalTransform, Unity.Transforms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.FailOutOfRangeError(Unity.Collections.NativeArray1[[Unity.Transforms.LocalTransform, Unity.Transforms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]*, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null this, System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 index) -> System.Void, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Tests | |
| { | |
| public static class PossibilityUtils | |
| { | |
| public static float GetMoreOrEqualPossibilitySum(int dicesCount, int dice, int target) | |
| { | |
| var allPossibilies = (int)Math.Pow(dice, dicesCount); |