Skip to content

problem-solving/rand7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published