lundi 27 juillet 2020

Random Integer Array from positive integer array

I have an array of positive integers, what are some tricks to turn that array into one with negative numbers too? For example one could be r * (b-a) + a with b = -1 and a = 1. Do you know any other tricks like this?




Aucun commentaire:

Enregistrer un commentaire