need help with random functions....

here's a quick illustration....