问题库中的加扰算法问题 [英] Scrambling algorithm questions in a question bank

查看:88
本文介绍了问题库中的加扰算法问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

救救我!
我正在开发一个测试程序.
如果人们知道您应用程序的代码,我仍然会争先恐后地理解算法中的问题.

help me !
I''m working on a test program.
I still scrambling algorithms understand questions in a question bank, if people know the code for your application.

推荐答案

您只是在尝试随机问题吗?如果是这样,那么一种相当简单的算法就是使用随机功能来以随机顺序分配正在询问的问题.

一种简单的方法是为每个问题分配一个数字,然后使用Random获得适当的问题,然后将其添加到哈希表中,直到选择完所有问题为止(该哈希表用于确保您不会尝试多次添加同一问题).
Are you just trying to get a random question? If so, a fairly simplistic algorithm is to use Random functionality to allocate the questions that are being asked in a random order.

A simple way of doing this is to allocate each question a number, and then use Random to get the appropriate one, adding it to a hash until all the questions have been chosen (the hash being used to guarantee you aren''t attempting to add the same question in more than once).


Sorry, Becaues ... I speak English very poor, I'm not English, I'm VietNamese :D, so I don't understand a lot what did you write?


我了解,我知道C#中的语句radom(),但我不使用.
如果您有演示或算法,可以在网站上发布吗?


I understand, I know statement radom() in C#,but I don''t use.
If you have Demo or algorithms, can you post on the site ?


这篇关于问题库中的加扰算法问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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