PS4Macro icon indicating copy to clipboard operation
PS4Macro copied to clipboard

Help wanted Random Sleep Time Range

Open baggypants71 opened this issue 5 years ago • 1 comments

Hi, Could someone tell me how to randomize the sleep with a range from 1000-3000ms.

baggypants71 avatar Mar 08 '19 08:03 baggypants71

Put Random random = new Random(); once before your Sleep functions and then you're able to use this:

Sleep(random.Next(1000, 3001); //3001 not included => 1000 ms to 3000 ms

For further questions use Google because this is a C# related question.

Morty2323 avatar Jan 27 '20 14:01 Morty2323