Skip to content

Instantly share code, notes, and snippets.

@JubbaSmail
Created November 13, 2014 09:53
Show Gist options
  • Save JubbaSmail/2356389f196f8bbd8d22 to your computer and use it in GitHub Desktop.
Save JubbaSmail/2356389f196f8bbd8d22 to your computer and use it in GitHub Desktop.
#include <windows.h>
void RandomSound()
{
//Beep(16000, 5000);
int i = 0;
while (TRUE)
{
int Freq = rand() % 1000;
int Dur = rand() % 500;
Beep(Freq, 100);
i++;
Sleep(100);
}
}
int main(int argc, LPTSTR argv[])
{
RandomSound();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment