use random page between 1 and --page

This commit is contained in:
abs3nt 2024-07-11 15:26:25 -07:00
parent 74c79052c7
commit 31e29cf1e5
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -153,7 +153,7 @@ func search(c *cli.Command) error {
TopRange: c.String("range"),
AtLeast: c.String("atLeast"),
Ratios: c.StringSlice("ratios"),
Page: c.Int("page"),
Page: int64(rand.Intn(int(c.Int("page"))) + 1),
}
query := c.Args().First()
if query != "" {