Update RandomList.ts

Adding a better random implementation