Due to the importance of the wireless sensor network in the applications of daily life, especially medical, military and agricultural, the process of developingthis type of networks to overcome the problems in use, as the most important of these problems is the problem of energy consumption. The development of the performance of these networks continued to ensure the lowest energy consumption to ensure that they last as long as possible. In this paper, proposed algorithm choose choosing best location for mobile sink according to nodes to save power of these nodes by generating random position. The results in the search show how to represents network model to increase network lifetime. The results indicate the superior performance of the algorithm in improving power consumption with specific conditions and compare energy consumption with other researcher works.