updated rande621 to a better approach

made it directly select a random post rather than a random integer index