mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Scroll next and prev page
This commit is contained in:
@@ -10,7 +10,7 @@ def random_normal_distribution_int(a, b, n=3):
|
||||
Args:
|
||||
a (int): The minimum of the interval.
|
||||
b (int): The maximum of the interval.
|
||||
n (int): The amount of numbers in simulation. Default to 5.
|
||||
n (int): The amount of numbers in simulation. Default to 3.
|
||||
|
||||
Returns:
|
||||
int
|
||||
@@ -22,18 +22,19 @@ def random_normal_distribution_int(a, b, n=3):
|
||||
return b
|
||||
|
||||
|
||||
def random_rectangle_point(area):
|
||||
def random_rectangle_point(area, n=3):
|
||||
"""Choose a random point in an area.
|
||||
|
||||
Args:
|
||||
area: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y).
|
||||
n (int): The amount of numbers in simulation. Default to 3.
|
||||
|
||||
Returns:
|
||||
int: x
|
||||
int: y
|
||||
"""
|
||||
x = random_normal_distribution_int(area[0], area[2])
|
||||
y = random_normal_distribution_int(area[1], area[3])
|
||||
x = random_normal_distribution_int(area[0], area[2], n=n)
|
||||
y = random_normal_distribution_int(area[1], area[3], n=n)
|
||||
return x, y
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user