rand_moji | R Documentation |
Function to create a random Japanese (Kanji or Hiragana) string.
rand_moji(length, size, replace = TRUE, moji = c("kanji", "hiragana"))
length |
a positive number, the length of the output string. |
size |
a positive number, the number of strings to output. |
replace |
should sampling be with replacement? |
moji |
Select the string to output. Select Kanji or Hiragana. |
It is a random string, so it does not reflect the normal rules of Japanese. In the case of hiragana, characters that do not normally appear at the beginning of a string, such as Sutegana and "n", will also appear at the beginning.
Only the range of regular kanji is supported.
a vector.
rand_moji(length = 3, size = 3, moji = "kanji")
rand_moji(length = 3, size = 3, moji = "hiragana")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.