An important point of AIS31 is §2.4.5, Additional Statistical Tests. They subsume all other randomness tests, specifically mentioning SP 800-90B. So you would have to implement the theoretical tests AIS31 mentions yourself. Although §2.4.5 implies that you can simply run with other standardised tests. For that reason I wouldn't bother with an implementation. But if you do bother, you can test your code against /dev/urandom
output, or binary expansions of the irrational numbers like $\pi, e, \phi, \sqrt{2}$ etc.
It's worth mentioning that these are not really the two main test suites. Diehard and Dieharder are also very common, depending on the size of the sample you can generate. With hindsight, you find that AIS31 is very uncommon in the wild for not having been implemented in a standardised code base.
There appears to be an implementation:-
But I don't know how to use it on Java 11 :-(
The direct link to an English version of the PDF document with the name "A proposal for: Functionality classes for random number generators, Version 2.0, 18 September 2011" can be found here.