阅读背景:

使用JSON中的随机值而不重复它们?

来源:互联网 

I'm writing a little Ruby Sinatra app that replaces string fragments with a regex in a Mad Libs type of way. I'm loading in a JSON object to get the strings, and I'm getting random values using the "sample" method. This doesn't solve the problem of only using values one time. Can anyone help?I'm writing a little Ruby Sinatra app that repl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: