Can I make 2d sprites random generate in a level?

You can find out how to do that through this tutorial. This particular set up is talking about storing lap times and best lap records but could be appropriated to a score system as well. You could also use it to track a “Longest time” which could be nice for an endless runner.