mirror of
				https://github.com/Dummi26/mers.git
				synced 2025-10-31 11:46:15 +01:00 
			
		
		
		
	amogus.mers wont fail without fish anymore
This commit is contained in:
		
							parent
							
								
									bba48b311f
								
							
						
					
					
						commit
						e53fc98f15
					
				
							
								
								
									
										13
									
								
								amogus.mers
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								amogus.mers
									
									
									
									
									
								
							| @ -2,9 +2,18 @@ text = "ℑ𝔠𝔥 𝔨𝔞𝔫𝔫 𝔡𝔞𝔰 𝔳𝔢𝔯𝔡𝔞𝔪𝔪 | ||||
| 
 | ||||
| // 1/n change to return true | ||||
| fn random(min int max int) { | ||||
|     run_command("fish" ["-c" "random " + min.to_string() + " " + max.to_string() ...]).assume_no_enum().1.trim().parse_int().assume1() | ||||
|     res = run_command("fish" ["-c" "random " + min.to_string() + " " + max.to_string() ...]) | ||||
|     switch res { | ||||
|         [[]/int string string] res.1.trim().parse_int().assume1() | ||||
|     } | ||||
| } | ||||
| fn rnd() { | ||||
|     r = random(5 15) | ||||
|     switch r { | ||||
|         int r | ||||
|         [] 10 | ||||
|     } | ||||
| } | ||||
| fn rnd() random(5 15) | ||||
| 
 | ||||
| words = rnd() | ||||
| for word text.regex("\\S+").assume_no_enum() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 mark
						mark