Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

rand7

You have a function rand5() that generates a random integer from 1 to 5. Use it to write a function rand7() that generates a random integer from 1 to 7.

Note:

rand5() returns each integer with equal probability. rand7() must also return each integer with equal probability.

About

Generate a random integer from 1 to 7

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors