Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
/ randomword Public archive

local random word generator package for python

License

Notifications You must be signed in to change notification settings

hexiro/randomword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomWord Description

randomword is a simple python library that chooses a random word from dwyl's list of English words. Unlike other libraries, there is no API. This library can be used without internet access.

Usage

import randomword

random_word = randomword.get_random_word()
# importing randomword and then doing randomword.randomword.get_random_word() is also applicable.
print(f"My favorite word in the dictionary is {random_word}.")

multiple_random_words = randomword.get_random_word(2)
print(f"If I had to choose, I would say my top two favorite words are {multiple_random_words[0]} and {multiple_random_words[1]}.")

Output

My favorite word in the dictionary is unutilized.
If I had to choose, I would say my top two favorite words are barhopped and passionful.

About

local random word generator package for python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages