IXL Learning Interview Question

How to implement a random generator