title: How to randomize clicks in an intervall?
body: <p>how can I randomize clicks in an intervall? (for example : 8-15) the clicks goes form 8 to 15 cps(clicks per second) with all values taken randomly</p>
  <p>Here's the code you can test it if you want</p>
  <pre><code>import pyautogui 
  import threading  
  import win32api
  from tkinter import * 
  from tkinter import ttk
  import random
  
   
  
  def fcclicks(): 
  
  
      while True:
          x = random.randrange(10,20)
         
          if win32api.GetKeyState(0x02)&lt;0: #if right click is pressed it will press left click 
  
              pyautogui.click()
              pyautogui.PAUSE = 1/x
             
              print(&quot;Pressed&quot;)
              
              
              print(x)
  
  fcclicks()
  </code></pre>
  <p>You can also see the random numbers generated in the terminal thanks to print(x) which proves that randoms between 10 and 20 are indeed generated but the values are not taken when clicking.</p>
  <p><strong>It's supposed to take all values randomly in that intervall</strong></p>