Add test to reproduce panic
Make sure nodes are available before calling rand