Skip to content
loading...

re: 3 Amazing ways to generate random numbers without Math.random() VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It produces the same result that's all I said. Nevertheless in C++ it's compiled to the same (42*32) and 42 << 5 both to the latter because b...

I think it is better to be explicit in this case.😎
Without knowing the target system, using multiplication is a risk.πŸ™

I didn't want that it uses multiplication. I thought it would be nice to mention that the result (mathematically) is the same instead of: it's changing the result to make a completely new number. Make it clear to the reader what this does and how to visualize it. Then people who don't know it can use it if they want to multiply by a power of two somewhere.

Oh... Okay πŸ‘πŸ½. You're right. Why I didn't do is because,I thought it would be confusing to the readers.

Fair enough. Maybe an extra box for extra information but understand your point.

code of conduct - report abuse