Now I need to know how to simulate random key stroke. Not all keys - only 'A' and 'D'.
I don't know how to do that. Maybe
simulate random float number from 0 to 20. If x=0-10 then press 'A' Else press 'D' ?
Can it be like that? Can you help me or give me some basic code to generate random float number?