mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Make the recursion limiter on RandomVariabilityPercent return the proper value
This commit is contained in:
		
							parent
							
								
									6a8b023289
								
							
						
					
					
						commit
						862696eef1
					
				
					 2 changed files with 1 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -445,7 +445,7 @@ namespace RJW_Menstruation
 | 
			
		|||
            const float mean = 1.635f;
 | 
			
		||||
            const float stddev = 0.9138f;
 | 
			
		||||
            const float lambda = 0.234f;
 | 
			
		||||
            if (recursion >= 10) return mean;
 | 
			
		||||
            if (recursion >= 10) return mean / (28 * 2);
 | 
			
		||||
 | 
			
		||||
            float variability = Rand.Gaussian(mean, stddev) - Mathf.Log(Rand.Value) / lambda;
 | 
			
		||||
            variability /= 28 * 2;  // Convert to percentage
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue