introduce rand_real struct (tested)