Random

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

Methods </ >

.getAdvice() STATIC </ >

Random method to generate an advice.

Type

Description

any

The string with the advice.

.getCat() STATIC </ >

Random method to generate a random cat image.

Type

Description

any

URL for the image.

.getDog() STATIC </ >

Random method to generate a random dog image.

Type

Description

any

URL for the image.

.getFact() STATIC </ >

Random method to generate a random fact.

Type

Description

any

The string for the fact.

.getJoke() STATIC </ >

Random method to generate a random joke.

Type

Description

any

An object with the title, description and URL

.getMeme(sub) STATIC </ >

Random method to generate a meme.

Parameters

Type

Optional

Description

sub

String

The subreddit to get the meme from.

.getString(number) STATIC </ >

Gets a random string of a length.

Parameters

Type

Optional

Description

number

Number

The length of the string.

.getTopic() STATIC </ >

Random method to generate a topic.

Type

Description

any

The string with the topic.

Last updated

Was this helpful?