Random numbers require code. Any InfoPath supported language will provide a
method to generate a random number.
There's no differentiation between saving and saving as draft. You create
that differentiation by including a field "my
![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
raft" and setting it to true
or false.
Are you referring to saving to a "different" library than normal (i.e. a
draft library as opposed to your normal library where you want to store
final forms)? This is possible with code, but is messy and not recommended.
Add a boolean field "my
![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
raft" and promote that to SharePoint where you can
filter on it instead.