created a server to produces random number