Code:
function main()
{
  random_seed(0);
  var filehandle = file_open_write("myfile.txt");
  while(1)
  {
    file_var_write(filehandle, random(1));
    random_seed(0);
    wait(1);
  }
}



i've plotted myfile.txt with contain about 3000 number. and still got a uniform distribution.