Yes, legal, but when did that ever stop the folks running the casino from suddenly finding you missing, and that you turn up later with the crap beaten out of you. Let’s be perfectly honest about this… legal is one thing, not getting caught is the real trick.
Honestly, even with deregulation, I don’t think that the use of electric or electronic mechanisms to directly alter the probability of winning at a bet is illegal.
Indirectly, I don’t know.