GithubHelp home page GithubHelp logo

yindz / common-random Goto Github PK

View Code? Open in Web Editor NEW
577.0 11.0 126.0 1.24 MB

简单易用的随机数据生成器。生成各种比较真实的假数据。一般用于开发和测试阶段的数据填充模拟。支持各类**特色本地化的数据格式。An easy-to use random data generator. Generally used for data filling, simulation, demonstration and other scenarios in the development and test phase.

License: Apache License 2.0

Java 100.00%
fake-data java

common-random's People

Contributors

changhe626 avatar dependabot[bot] avatar fanlushuai avatar yindz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

common-random's Issues

建议增加一个统一入口类

看到这个框架感觉很惊喜,使用效果也非常好。
但使用过程也碰到了一点小小的问题:
第一次使用时,不知道该使用哪个类生成什么样的数据。这点可以通过查找文档解决,但还是有点麻烦。
所以我建议,能否个Java Faker那样增加一个总的入口类(Faker),比如叫RandomSource,由此类可以获取到com.apifan.common.random 包下的所有资源类;这样在IDEA强大的提示功能下,即使是初次使用的人,也可以大大减少查找文档,提高效率。

以上,仅个人愚见。

Android需要添加implementation

implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.github.tony19:logback-android:2.0.0'
implementation 'org.apache.commons:commons-lang3:3.7'
implementation "com.google.guava:guava:16+"
implementation 'org.apache.commons:commons-collections4:4.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5'
Android,其中个人信息不能用

请问汉语词汇数据是在哪里找的呢?

我想生成形容词+名词的随机昵称,找了半天数据,发现这里有名次的txt文件,但还缺少形容词的数据,请问作者那些汉语词汇都是怎么收集的,我翻了好多语料库,只能找到部分数据,远不如作者您的数据量

报错java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Font;

E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Font;
at com.apifan.common.random.source.PersonInfoSource.(PersonInfoSource.java:42)
at com.apifan.common.random.source.PersonInfoSource.getInstance(PersonInfoSource.java:186)
at top.kxxg.lvcha.ui.search.SearchFragment$initBanner$1$1.invokeSuspend(SearchFragment.kt:131)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.