News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_johnlobo

random number between 0 and 41

Started by johnlobo, 10:31, 14 August 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eto

Quote from: Animalgril987 on 17:33, 17 August 21I have tested both @eto 's method and SpDizzy's ( as modified) and ego's is slightly more effective at being random.

Maybe combine them? In case the original number is below 42, use it. If not, apply my method. Or would that change the distribution of numbers?

(btw: my approach is not flexible. It works well for THIS scenario, but not for any range)

Powered by SMFPacks Menu Editor Mod