Efficient and good concept but sorry guys your algorithm sucks hard : beyond something like 10 000, bet function causes hard lag calculating values...i dont know your source code but that looks like a ranged random function from a interpreted langage :/ reworks on loops plz. Good luck for the next