Sample生成器
Sample生成器 · word.sample. 生成方法 · 示例
word.sample
生成设置
生成后在这里查看结果。
参数 & 示例
Returns a random word, that can be an adjective, adverb, conjunction, interjection, noun, preposition, or verb.
word.sample(options?: number | { length?: NumberOrRange; strategy?: LengthStrategyType; })- options
- The expected length of the word or the options to use.
- options.length
- The expected length of the word.
- options.strategy
- The strategy to apply when no words with a matching length are found. Defaults to 'fail'.
示例
"innocently"请在测试环境使用合成数据。