internal void RandomizeSamplers()
 {
     foreach (var sampler in samplers)
     {
         sampler.baseSeed = SamplerUtility.GenerateRandomSeed();
         sampler.ResetState();
     }
 }
        void CreateSampler(Type samplerType)
        {
            var newSampler = (ISampler)Activator.CreateInstance(samplerType);

            newSampler.baseSeed = SamplerUtility.GenerateRandomSeed();

            if (m_RangeProperty != null)
            {
                newSampler.range = new FloatRange(
                    m_RangeProperty.FindPropertyRelative("minimum").floatValue,
                    m_RangeProperty.FindPropertyRelative("maximum").floatValue);
            }


            m_Sampler = newSampler;
            m_Property.managedReferenceValue = newSampler;
            m_Property.serializedObject.ApplyModifiedProperties();
        }