How can you use the rand5() function to create a rand7() function that generates a random integer between 0 and 7?

1 answer

Answer

1148287

2026-07-24 14:25

+ Follow

To create a rand7() function using the rand5() function, you can call the rand5() function twice and combine the results to generate a random integer between 0 and 7.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.