Addition of randomised rules

Also a fix for random not being random

Signed-off-by: GreatEmerald <pastas4@gmail.com>