Skip to content

Instantly share code, notes, and snippets.

@sasanquaneuf
Last active December 20, 2015 10:37
Show Gist options
  • Save sasanquaneuf/393f9a7dcfbb16453de4 to your computer and use it in GitHub Desktop.
Save sasanquaneuf/393f9a7dcfbb16453de4 to your computer and use it in GitHub Desktop.
Qlik Sense Desktop × Surface Pro3で10億件のデータを試してみる ref: http://qiita.com/sasanquaneuf/items/68274d59328b4d418017
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
StreamWriter sw = new StreamWriter(@"c:\a_test\dummy_data.txt");
var r = new Random();
sw.WriteLine("区分1,区分2,区分3,金額");
for (long i = 0; i < 100000000; i++)
{
sw.WriteLine(r.Next(5) + "," + r.Next(5) + "," + r.Next(10) + "," + 500 * r.Next(20));
}
sw.Close();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment