Created
November 13, 2014 09:53
-
-
Save JubbaSmail/2356389f196f8bbd8d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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