We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
该网站为您提供大量用于测试目的的免费数据:www.fakenamegenerator.com
This website offers you a lot of free data for tests purpose : www.fakenamegenerator.com
您可以编写一个简单的脚本来以编程方式随机生成所需的数据吗?我会使用 python,但你几乎可以在任何东西中做到这一点。
沿着此伪代码的某些内容应该可以解决问题:
其中
randomName
生成随机名称,randomEmail
生成随机电子邮件,insertIntoSomeTable
获取随机生成的数据并将其插入到您的表之一中。这些功能的实现应该很简单。对您需要随机数据的所有表重复此操作。
Could you just write a simple script to programmatically randomly generate the required data? I would use python, but you could do it in practically anything.
Something along the lines of this pseudo code should do the trick:
Where
randomName
generates a random name,randomEmail
generates a random email andinsertIntoSomeTable
takes the randomly generated data and inserts it into one of your tables. These functions should be trivial to implement.Repeat for all of the tables you need random data for.