Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial 请教一个关于模拟真是用户名的生成原理

请教一个关于模拟真是用户名的生成原理

Jun 23, 2016 pm 01:58 PM
principle simulation generate username

我现在在做一个批量注册用户的功能,但是用户名必须人性化,不能使用随机字符串等,说白了,就是模拟真实用户注册。

现在就是这个“模拟真实用户名”问题很头疼,如果要模拟必须要有一个名字库,或者百家姓大全什么的,这样组合起来会看上去更真实,但是网上也搜不到这些数据库。

我想问下谁还有更好的办法没?  谢谢了!


回复讨论(解决方案)

姓 跟 名字 随机组合
就是得找两个库来

想要真实的话只能花点时间自己整理个库出来
还有个不好的方式就是在汉字范围内随机 2-3个字也随机 但是这个方法不怎么好只是个人想法

赵 钱 孙 李 周 吴 郑 王冯 陈 楮 卫 蒋 沈 韩 杨朱 秦 尤 许 何 吕 施 张孔 曹 严 华 金 魏 陶 姜戚 谢 邹 喻 柏 水 窦 章云 苏 潘 葛 奚 范 彭 郎鲁 韦 昌 马 苗 凤 花 方俞 任 袁 柳 酆 鲍 史 唐费 廉 岑 薛 雷 贺 倪 汤滕 殷 罗 毕 郝 邬 安 常乐 于 时 傅 皮 卞 齐 康伍 余 元 卜 顾 孟 平 黄和 穆 萧 尹 姚 邵 湛 汪祁 毛 禹 狄 米 贝 明 臧计 伏 成 戴 谈 宋 茅 庞熊 纪 舒 屈 项 祝 董 梁杜 阮 蓝 闽 席 季 麻 强贾 路 娄 危 江 童 颜 郭梅 盛 林 刁 锺 徐 丘 骆高 夏 蔡 田 樊 胡 凌 霍虞 万 支 柯 昝 管 卢 莫经 房 裘 缪 干 解 应 宗丁 宣 贲 邓 郁 单 杭 洪包 诸 左 石 崔 吉 钮 龚程 嵇 邢 滑 裴 陆 荣 翁荀 羊 於 惠 甄 ? 家 封芮 羿 储 靳 汲 邴 糜 松井 段 富 巫 乌 焦 巴 弓牧 隗 山 谷 车 侯 宓 蓬全 郗 班 仰 秋 仲 伊 宫宁 仇 栾 暴 甘 斜 厉 戎祖 武 符 刘 景 詹 束 龙叶 幸 司 韶 郜 黎 蓟 薄印 宿 白 怀 蒲 邰 从 鄂索 咸 籍 赖 卓 蔺 屠 蒙池 乔 阴 郁 胥 能 苍 双闻 莘 党 翟 谭 贡 劳 逄姬 申 扶 堵 冉 宰 郦 雍? 璩 桑 桂 濮 牛 寿 通边 扈 燕 冀 郏 浦 尚 农温 别 庄 晏 柴 瞿 阎 充慕 连 茹 习 宦 艾 鱼 容向 古 易 慎 戈 廖 庾 终暨 居 衡 步 都 耿 满 弘匡 国 文 寇 广 禄 阙 东欧 殳 沃 利 蔚 越 夔 隆师 巩 厍 聂 晁 勾 敖 融冷 訾 辛 阚 那 简 饶 空曾 毋 沙 乜 养 鞠 须 丰巢 关 蒯 相 查 后 荆 红游 竺 权 逑 盖 益 桓 公万俟 司马 上官 欧阳夏侯 诸葛 闻人 东方赫连 皇甫 尉迟 公羊澹台 公冶 宗政 濮阳淳于 单于 太叔 申屠公孙 仲孙 轩辕 令狐锺离 宇文 长孙 慕容鲜于 闾丘 司徒 司空丌官 司寇 仉 督 子车颛孙 端木 巫马 公西漆雕 乐正 壤驷 公良拓拔 夹谷 宰父 谷梁晋 楚 阎 法 汝 鄢 涂 钦段干 百里 东郭 南门呼延 归 海 羊舌 微生岳 帅 缑 亢 况 后 有 琴梁丘 左丘 东门 西门商 牟 佘 佴 伯 赏 南宫墨 哈 谯 笪 年 爱 阳 佟
Copy after login

想要真实的话只能花点时间自己整理个库出来
还有个不好的方式就是在汉字范围内随机 2-3个字也随机 但是这个方法不怎么好只是个人想法



你看这样行吗,就是我直接采集N个论坛的用户名,去掉重复的。。。

赵 钱 孙 李 周 吴 郑 王冯 陈 楮 卫 蒋 沈 韩 杨
Copy after login


这只有姓。。。。  如果单纯的都用 百家姓和名字来组合的话,会不会觉得更生涩啊。都是人名...

名字不是很随意的吗?什么稀奇古怪的名字不是都有吗

名字不是很随意的吗?什么稀奇古怪的名字不是都有吗


但是最起码要读起来通顺啊。。。 


名字不是很随意的吗?什么稀奇古怪的名字不是都有吗


但是最起码要读起来通顺啊。。。 

这个只有 你人为的把名字取号,读的通顺,存入数据库。

那也不尽然,比如 李肇星、杨洁篪

如果你以为是很通顺的话,那么
赵肇星、 钱肇星、孙 肇星、李肇星、 周肇星、 吴肇星、 郑肇星、 王肇星.....不也就很通顺了吗

你看这样行吗,就是我直接采集N个论坛的用户名,去掉重复的。。。


可行


想要真实的话只能花点时间自己整理个库出来
还有个不好的方式就是在汉字范围内随机 2-3个字也随机 但是这个方法不怎么好只是个人想法



你看这样行吗,就是我直接采集N个论坛的用户名,去掉重复的。。。  如何采集论坛用户的名称。。想请教下。



想要真实的话只能花点时间自己整理个库出来
还有个不好的方式就是在汉字范围内随机 2-3个字也随机 但是这个方法不怎么好只是个人想法



你看这样行吗,就是我直接采集N个论坛的用户名,去掉重复的。。。  如何采集论坛用户的名称。。想请教下。

晕 这也要问...
找那种用户信息页面是以uid做索引的论坛,直接遍历uid就能把用户名取出来就行了...

呵呵呵,我没有采集论坛里边的用户,直接百度搜索个性网名,很多网站都有奥,口水留了一地,啥都不说,直接开采!收获还是大大地,不过有些名字太非主流了,各种奇怪符号,过滤一下还是可以用地。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem that Windows 11 prompts you to enter the administrator username and password to continue? How to solve the problem that Windows 11 prompts you to enter the administrator username and password to continue? Apr 11, 2024 am 09:10 AM

When using Win11 system, sometimes you will encounter a prompt that requires you to enter the administrator username and password. This article will discuss how to deal with this situation. Method 1: 1. Click [Windows Logo], then press [Shift+Restart] to enter safe mode; or enter safe mode this way: click the Start menu and select Settings. Select "Update and Security"; select "Restart Now" in "Recovery"; after restarting and entering the options, select - Troubleshoot - Advanced Options - Startup Settings -&mdash

Analysis of the function and principle of nohup Analysis of the function and principle of nohup Mar 25, 2024 pm 03:24 PM

Analysis of the role and principle of nohup In Unix and Unix-like operating systems, nohup is a commonly used command that is used to run commands in the background. Even if the user exits the current session or closes the terminal window, the command can still continue to be executed. In this article, we will analyze the function and principle of the nohup command in detail. 1. The role of nohup: Running commands in the background: Through the nohup command, we can let long-running commands continue to execute in the background without being affected by the user exiting the terminal session. This needs to be run

How to fill in the user name of Railway 12306 How to fill in the user name of Railway 12306 Feb 23, 2024 pm 04:07 PM

How to fill in the user name of Railway 12306? You can fill in the user name in Railway 12306 APP, but most friends don’t know how to fill in the user name of Railway 12306. Next is the graphic tutorial on how to fill in the user name of Railway 12306 brought by the editor. , interested users come and take a look! Railway 12306 usage tutorial How to fill in the Railway 12306 username 1. First open the Railway 12306 APP and click [Register] at the bottom of the main page; 2. Then on the registration function page, enter the user name, password, confirmation password, etc.; 3. Finally enter Once completed, you can fill in the user registration.

In-depth discussion of the principles and practices of the Struts framework In-depth discussion of the principles and practices of the Struts framework Feb 18, 2024 pm 06:10 PM

Principle analysis and practical exploration of the Struts framework. As a commonly used MVC framework in JavaWeb development, the Struts framework has good design patterns and scalability and is widely used in enterprise-level application development. This article will analyze the principles of the Struts framework and explore it with actual code examples to help readers better understand and apply the framework. 1. Analysis of the principles of the Struts framework 1. MVC architecture The Struts framework is based on MVC (Model-View-Con

In-depth understanding of the batch Insert implementation principle in MyBatis In-depth understanding of the batch Insert implementation principle in MyBatis Feb 21, 2024 pm 04:42 PM

MyBatis is a popular Java persistence layer framework that is widely used in various Java projects. Among them, batch insertion is a common operation that can effectively improve the performance of database operations. This article will deeply explore the implementation principle of batch Insert in MyBatis, and analyze it in detail with specific code examples. Batch Insert in MyBatis In MyBatis, batch Insert operations are usually implemented using dynamic SQL. By constructing a line S containing multiple inserted values

What to do if the word directory is generated incorrectly What to do if the word directory is generated incorrectly Feb 20, 2024 am 08:08 AM

What to do if word table of contents is generated incorrectly. With the development of technology, electronic documents have become an indispensable part of our daily work and study. When editing electronic documents, especially long articles or papers, the generation of a table of contents is a very important step. The table of contents can make it easier for readers to find the content and structure of the article and improve reading efficiency. However, sometimes we encounter some problems in the process of generating the catalog, such as catalog generation errors, disordered order, etc. So, if the word directory is generated incorrectly, how should we solve it? head

Detailed explanation of the principle of MyBatis paging plug-in Detailed explanation of the principle of MyBatis paging plug-in Feb 22, 2024 pm 03:42 PM

MyBatis is an excellent persistence layer framework. It supports database operations based on XML and annotations. It is simple and easy to use. It also provides a rich plug-in mechanism. Among them, the paging plug-in is one of the more frequently used plug-ins. This article will delve into the principles of the MyBatis paging plug-in and illustrate it with specific code examples. 1. Paging plug-in principle MyBatis itself does not provide native paging function, but you can use plug-ins to implement paging queries. The principle of paging plug-in is mainly to intercept MyBatis

An in-depth analysis of the functions and working principles of the Linux chage command An in-depth analysis of the functions and working principles of the Linux chage command Feb 24, 2024 pm 03:48 PM

The chage command in the Linux system is a command used to modify the password expiration date of a user account. It can also be used to modify the longest and shortest usable date of the account. This command plays a very important role in managing user account security. It can effectively control the usage period of user passwords and enhance system security. How to use the chage command: The basic syntax of the chage command is: chage [option] user name. For example, to modify the password expiration date of user "testuser", you can use the following command

See all articles