Save values in random demand dialog

Signed-off-by: Daniel A. Zorin <juan@lvk.cs.msu.su>