Save data from a .ts file (in app)

As explained in this other thread, all the randomness should be done only once, and then all you need to save in storage is the shuffled deck (which never changes) and a single integer representing the current position.