mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
scripts: generate-alt-random-writes: don’t re-use ‘count’ variable
This commit is contained in:
parent
168ceaa927
commit
2639e7d2e2
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ def main():
|
|||
bottom = rand.read(1)[0] % 3
|
||||
out.write(f'\033[{top};{lines - bottom}r')
|
||||
|
||||
count = rand.read(1)[0] % (lines - 1)
|
||||
lines_to_scroll = rand.read(1)[0] % (lines - 1)
|
||||
rev = rand.read(1)[0] % 2
|
||||
out.write(f'\033[{count + 1}{"T" if rev == 1 else "S"}')
|
||||
out.write(f'\033[{lines_to_scroll + 1}{"T" if rev == 1 else "S"}')
|
||||
continue
|
||||
|
||||
# Generate a random location and a random character
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue