I think I have figured out my problem to:
The trouble I am having is only one %randnum is written to todo.ini per user. When you submit another task, it overwrites the previous %randnum.
When writing the file, the item is always constant and the value is changing so it overwrites the previous value for that item.
Now, to change the syntax of the way everything is stored :S