Random

You should've opened this PR
This function could be written in a more clear fashion, but it's so small it's okay