Coders Packet

Generate a Random Sound using C++

By Ageer HariKrishna

This project describes how to generate random sound in c++. With the help of beep function.

This project is about generating random sounds using the beep function with the help of the windows.h library. The beep function takes two inputs which are frequency and time. To generate random time and frequency with the help of random function. The srand() function sets the starting point for producing a series of pseudo-random integers. If srand() is not called, the rand() seed is set as if srand(time(0)) were called at the program start. Any other value for seed sets the generator to a different starting point. used the beep functions multiple times because to generate a random sound with a milliseconds time  delay .

required libraries for the project :-


Download Complete Code


No comments yet