记住表中的随机选择 [英] Memorize random pick from Table

查看:77
本文介绍了记住表中的随机选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这种方法从表格中随机选择一个单元格:

I''m using this method for random picking a cell from a Table:

Math.floor(Math.random() * example.length)

,它可以正常工作.

但是我需要记住自己的选择,以便以后在项目中再次选择该单元格.

and it works without a problem.

But I need to memorize my choice so I could pick again that cell later in my project.

Is there any method to do this thing?

推荐答案


这篇关于记住表中的随机选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆