add string support for Random class