mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +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
|
// 1/n change to return true
|
||||||
fn random(min int max int) {
|
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()
|
words = rnd()
|
||||||
for word text.regex("\\S+").assume_no_enum()
|
for word text.regex("\\S+").assume_no_enum()
|
||||||
|
Loading…
Reference in New Issue
Block a user