added first random algorithm

uses math and is just a little bit stupid