my program presses wasd123wasd123, but i dont know how to make it pressing 1ws2aasd22ww. How to make random presser? Can someone edit my code?

Code:
#include <iostream>
#include <windows.h> 
#include <stdlib.h> 
using namespace std; 
 
int main () 
{ 
  for(;;){ 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('w'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('a'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('s'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('d'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('1'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('2'),0,0,0); 
  Sleep(1000); 
  rand(); 
  keybd_event(VkKeyScan('3'),0,0,0); 
  } 
  return 0; 
}