i need to random graph code to creat chord system