added bean random generator