Random

The class for generating random things such as cat images, dog images, jokes and much more!

triangle-exclamation

.getAdvice() STATIC </ >arrow-up-right

Random method to generate an advice.

Type

Description

any

The string with the advice.

circle-check

.getCat() STATIC </ >arrow-up-right

Random method to generate a random cat image.

Type

Description

any

URL for the image.

circle-check

.getDog() STATIC </ >arrow-up-right

Random method to generate a random dog image.

Type

Description

any

URL for the image.

circle-check

.getFact() STATIC </ >arrow-up-right

Random method to generate a random fact.

Type

Description

any

The string for the fact.

circle-check

.getJoke() STATIC </ >arrow-up-right

Random method to generate a random joke.

Type

Description

any

An object with the title, description and URL

circle-check

.getMeme(sub) STATIC </ >arrow-up-right

Random method to generate a meme.

Parameters

Type

Optional

Description

sub

String

The subreddit to get the meme from.

circle-check

.getString(number) STATIC </ >arrow-up-right

Gets a random string of a length.

Parameters

Type

Optional

Description

number

Number

The length of the string.

circle-check

.getTopic() STATIC </ >arrow-up-right

Random method to generate a topic.

Type

Description

any

The string with the topic.

circle-check

Last updated

Was this helpful?